public override void OnKeyPressed(Key key) { switch (key) { case Key.Enter: case Key.Space: Select(); break; case Key.Up: mainMenu.Up(); break; case Key.Down: mainMenu.Down(); break; case Key.Escape: { soundManager.PlaySound(Sounds.MainMenuSelect); MainController.ExitGame(); break; } } this.Repaint(); }