KEK, you have to use only 3 back ticks or it won’t work properly. (How to type code blocks )
But anyway if it happens only sometimes the issue might be elsewhere, also when you alt tab the game will pause unless you disable the pause on lost focus.
A small test case might be useful to isolate the problem.