private void CheckKeyboard()
        {
            if (ControlManager.CheckPress(RebindableKeys.Pause) && timeSinceStarted > 200)
            {
                PopupHandler.DisplayMenu();
            }

            if (ControlManager.CheckKeyPress(Keys.Y))
            {
                //Game.messageBox.DisplayMessage("Hello world!");
                Game.soundEffectsManager.MutateLaserSound_DEVELOP();
            }

            //if (ControlManager.CheckKeypress(Keys.F1))
            //    AlliedShip.ShowSightRange = !AlliedShip.ShowSightRange;

            if (StatsManager.gameMode == GameMode.Develop || StatsManager.gameMode == GameMode.Campaign)
            {
                DevelopCommands();
            }
        }
        private void Inputhandling()
        {
            if ((ControlManager.CheckPress(RebindableKeys.Action1) ||
                 ControlManager.CheckKeyPress(Keys.Enter)))
            {
                EnterCheck();
            }
            else if (ControlManager.CheckPress(RebindableKeys.Pause) &&
                     Game.player.IsControlsEnabled &&
                     (MissionManager.GetMission(MissionID.Main5_Retribution).MissionState != StateOfMission.Active ||
                      (MissionManager.GetMission(MissionID.Main5_Retribution).ObjectiveIndex <= 2 ||
                       MissionManager.GetMission(MissionID.Main5_Retribution).ObjectiveIndex >= 6)))
            {
                PopupHandler.DisplayMenu();
            }

            else if (ControlManager.CheckPress(RebindableKeys.Missions))
            {
                Game.stateManager.ChangeState("MissionScreenState");
            }

            else if (ControlManager.CheckPress(RebindableKeys.Inventory))
            {
                Game.stateManager.ChangeState("ShipManagerState");
                Game.stateManager.shooterState.Initialize();
            }
            else if (ControlManager.CheckPress(RebindableKeys.Help))
            {
                Game.stateManager.ChangeState("HelpScreenState");
            }

            if (StatsManager.gameMode == GameMode.Develop && ControlManager.CheckKeyPress(Keys.U))
            {
                DevelopCommands();
            }
        }