title: How To Do GetAsyncKeyState (Keys.Variable < 0)
body: <p>Hay, i'm trying to make a listbox with different letters and essentially if you select A it will send something like</p>
  <pre class="lang-cs prettyprint-override"><code>
  string keyb;
      keyb = &quot;Keys.&quot; + cmbobox.SelectedItem;
      if (GetAsyncKeyState(keyb) &lt; 0)
      {
         //code here
      }
  </code></pre>
  <p>Instead of doing an if or switch (which i can't do a switch as this if condition checks for multiple things), any help would be appreciated.</p>