Fixed double key-presses and gameState change bugs.