Fixed bug involving keyboard input resetting the game.