thats probably because ther is a pause menu that activates when you press esc. Thanks for playing and leaving a comment btw! :)
no problem