Beyond_Beyaan.Screens.DiplomacyScreen.KeyDown C# (CSharp) Method

KeyDown() public method

public KeyDown ( KeyboardInputEventArgs e ) : void
e KeyboardInputEventArgs
return void
        public void KeyDown(KeyboardInputEventArgs e)
        {
            if (e.Key == KeyboardKeys.Escape)
            {
                gameMain.ChangeToScreen(Screen.Galaxy);
            }
        }