title: .IsKeyDown(Keys keys) not Working?
body: <p>I am new to C# (transferring from the Web Development world). </p>
  
  <p>Anyway, I am making a simple background color changing program that takes input from the user. I have three color variables  (which I pass into this: <code>backgroundColor = new Color(redIntensity, greenIntensity, blueIntensity);</code>)</p>
  
  <p>So then in the <code>Update()</code> method I have this:</p>
  
  <pre><code>        //[colorIntensity] = 0 then count up...when pressed
          //Changes background color
          KeyboardState keyState = new KeyboardState();
  
          if (keyState.IsKeyDown(Keys.R))
          {
              redIntensity++;
          }
  </code></pre>
  
  <p>The above code doesn't work! However, if I change the:</p>
  
  <pre><code>        if(keyState.IsKeyDown(Keys.R)) ...
  </code></pre>
  
  <p>To:</p>
  
  <pre><code>       if(keyState.IsKeyUp(Keys.R)) ...
  </code></pre>
  
  <p>It works fine...</p>
  
  <p>So, any advice?</p>
  
  <p>EDIT: I'm using XNA Framework.</p>