Implement Core::TogglePause(). When Space is pressed, the game logic
stops running