Are you pressing “x” key to select an option? Or are you pressing “z” one? I know pressing “z” or selecting “Exit” option closes your game. In case of web build - game freezes, so you have to refresh game’s page. Let me know if that works.