if the player presses ESC while playing, go back to previous page.