title: XNA - how to use the same key for different options?
body: <p>So I have this code: Variables: </p>
  
  <pre><code>    enum gameState
      {
          gameLoading,
          mainMenu,
          gameOptions,
          levelSelect,
          gamePlaying,
          gameOver
      }
  </code></pre>
  
  <p>In the <code>Update()</code> method:</p>
  
  <pre><code>        if (CurrentGameState == gameState.gameLoading)
          {
              if (Keyboard.GetState().IsKeyDown(Keys.E))
              {
                  graphics.ToggleFullScreen(); //?
              }
              graphics.ApplyChanges();
          }
          ...
          //gameState.gameLoading logic
          if (Keyboard.GetState().IsKeyDown(Keys.Enter))
          CurrentGameState = gameState.mainMenu;
  </code></pre>
  
  <p>So what I want is to have Enter pressed in <code>gameState.gameLoading</code> and both resolution is fullscreen and the <code>gameState</code> is equal to <code>mainMenu</code>. When in <code>gameState.mainMenu</code> the resolution can't be changed from fullscreen to windowed by pressing enter. How to achieve this? Maybe using list?</p>