title: Why does my KeyPressEvent not work with Right/Left/Up/Down?
body: <p>In C#, I am trying to see if the user presses the right key so that a player moves right, but when I try it, it does not register the keypress:</p>
  
  <pre><code>private void KeyPressed(object sender, KeyPressEventArgs e)
  {
        if(e.KeyChar == Convert.ToChar(Keys.Right))
        {
                MessageBox.Show("Right Key");
        } 
  } 
  </code></pre>
  
  <p>It does not display the MessageBox</p>
  
  <p>This doesn't work for Left/Up/Down either</p>
  
  <p>However, if I replace it with</p>
  
  <pre><code>if(e.KeyChar == Convert.ToChar(Keys.Space))
  </code></pre>
  
  <p>It works.</p>
  
  <p>Am I doing something wrong?</p>