Commented out what I had for jump as it was an infinite loop. Also added pressing the escape key to exit the game.