title: C# - Check if specific key is pressed
body: <p>I'm trying to check if a key is pressed, but I get these Error Message:</p>
  <blockquote>
  <p>Error  1   The name 'Keyboard' does not exist in the current context</p>
  <p>Error  2   The name 'Key' does not exist in the current context</p>
  </blockquote>
  <p>Can you tell me how to fix it?</p>
  <pre><code>public void Main() 
  {
      while(true) 
      {
          if (Keyboard.IsKeyPressed(Key.A)) 
          {
              //...
          }
          return;
      }
  }
  </code></pre>