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

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

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