title: Can't use KeyCode in C#
body: <p>I'm trying to make it so that when the user pressed the PrintScreen button on their keyboard, a Messagebox appears.</p>
  
  <p>I've looked a lot online and this code seems to be the standard of how to go about doing that.</p>
  
  <p><strong>The issue is, I get an error saying,</strong> </p>
  
  <blockquote>
    <p>System.Windows.Forms.KeyPressEventArgs' does not contain a definition
    for 'KeyCode' and no extension method 'KeyCode' accepting a first
    argument of type 'System.Windows.Forms.KeyPressEventArgs' could be
    found (are you missing a using directive or an assembly reference?)</p>
  </blockquote>
  
  <pre><code>    private void Form1_KeyPress(object sender, KeyPressEventArgs e)
      {
          if (e.KeyCode == Keys.PrintScreen)
          {
              MessageBox.Show("Test");
          }
      }
  </code></pre>