Custom base class for game states. Keyboard functions for returning to main menu.