public override void Update(GameTime gameTime)
        {
            this.menuComponent.Update();

            if (InputState.CheckKeyReleased(Keys.Space) || InputState.CheckKeyReleased(Keys.Enter) ||
                (this.menuComponent.MouseOver && InputState.CheckMouseReleased(MouseButtons.Left)))
            {
                switch (this.menuComponent.SelectedIndex)
                {
                case 0:
                    InputState.FlushInput();
                    break;

                case 1:
                    InputState.FlushInput();
                    break;

                case 2:
                    InputState.FlushInput();
                    break;

                case 3:
                    this.Game.Exit();
                    break;

                case 5:
                    InputState.FlushInput();
                    break;
                }
            }

            base.Update(gameTime);
        }
        public override void Update(GameTime gameTime)
        {
            // indexInControl = PlayerIndex.One;
            // elapsed += gameTime.ElapsedGameTime;
            // base.Update(gameTime);
            PlayerIndex?index = null;

            elapsed += gameTime.ElapsedGameTime;

            if (InputState.CheckKeyReleased(Keys.Space) || InputState.CheckKeyReleased(Keys.Enter) ||
                InputState.CheckMouseReleased(MouseButtons.Left))
            {
                manager.ChangeState((MainMenuState)GameRef.MainMenuState, index);
            }

            base.Update(gameTime);
        }