public void KeyRelease(object sender, KeyboardEventArgs args)
 {
     StopMovingCamera();            
 }
 void keyboardManager_OnPress(object sender, KeyboardEventArgs e)
 {
     DisplayManager.KeyPress(sender, e);
 }
        public void KeyPress(object sender, KeyboardEventArgs args)
        {
            StartMovingCamera(args.Key);

            //---MainMenu------------------------------------------
            if (mainMenu != null)
            if (mainMenu.inputNewGameUserName != null)
                mainMenu.inputNewGameUserName.InputKeyCode(args.Key);
            //------------------------------------------------------
            if (args.Key == Keys.Escape)
            {
                Debug.Clear();
            }
            if (args.Key == Keys.C)
            {
                GameManager.SetMoney(GameManager.CurrentYear, 0);
                GUI.SetMoney(0);
            }
            if (args.Key == Keys.X)
            {
                GameManager.AddMoney(GameManager.CurrentYear, 1000);
                GUI.SetMoney(GameManager.GetMoney(GameManager.CurrentYear));
            }
        }
 void keyboardManager_OnRelease(object sender, KeyboardEventArgs e)
 {
     DisplayManager.KeyRelease(sender, e);
 }