public override void HandleInput(KeyboardState newKeyboardState, MouseState newMouseState, Game1 parent)
        {
            if (parent.Window.ClientBounds != _windowSize)
            {
                _windowSize = parent.Window.ClientBounds;
                WindowResized(_windowSize);
            }
            if (!_keyboardstate.IsKeyDown(Keys.Space) && newKeyboardState.IsKeyDown(Keys.Space))
                parent.SwitchScene(Scene.MainMenu);
            if (!_keyboardstate.IsKeyDown(Keys.Escape) && newKeyboardState.IsKeyDown(Keys.Escape))
                parent.Exit();

            _keyboardstate = newKeyboardState;
            _mouseState = newMouseState;
        }
 /// <summary>
 /// Gestion de l'evenement de selection
 /// </summary>
 /// <param name="parent">Reference de la classe Game1 parent</param>
 private void selectionEvent(Game1 parent)
 {
     parent.son.Play(Sons.MenuSelection);
     switch (selection)
     {
         case Selection.Exit:
             parent.Exit();
             break;
         case Selection.Play:
             parent.SwitchScene(Scene.InGame);
             break;
         case Selection.Extra:
             parent.SwitchScene(Scene.Extra);
             break;
         case Selection.Credit:
             parent.SwitchScene(Scene.Credit);
             break;
         case Selection.Options:
             parent.SwitchScene(Scene.Options);
             break;
     }
 }