Working in-game menu with "esc" for toggleMenu, "p" for togglePause