I wanted to add an menu when you press ESC, but didn'thad enough time so ESC will only exit the game. I don't think i can add anymore features and options to the game, while the ratings are still going on.
But for the bug. If you have time, Can you explain more, the cursor.lock. You can't play the game anymore when it happens? Are you stuck in place? Can you still walk?