Updated Game to allow keyboard input only when game is active.