public void KeyDown(KeyboardInputEventArgs e) { if (e.Key == KeyboardKeys.Escape) { _gameMain.ExitGame(); } }