Beyond_Beyaan.Screens.MainGameMenu.KeyDown C# (CSharp) Метод

KeyDown() публичный Метод

public KeyDown ( KeyboardInputEventArgs e ) : void
e KeyboardInputEventArgs
Результат void
        public void KeyDown(KeyboardInputEventArgs e)
        {
            if (e.Key == KeyboardKeys.Escape)
            {
                _gameMain.ExitGame();
            }
        }