title: looking up that the user press a key or not?
body: <p>I want to look-up that whether a user's pressed a keyboard key.
  I tried some code:</p>
  
  <pre><code>    [DllImport("User32.dll")]
      private static extern short GetAsyncKeyState(System.Windows.Forms.Keys vKey);
      [DllImport("User32.dll")]
      private static extern short GetAsyncKeyState(System.Int32 vKey);
      .....
       if ((GetAsyncKeyState(Keys.F10) == -32767))
         {....}
  </code></pre>
  
  <p>What it does is that it just check the pressing of F10 key.It doesn't care whether it is Shift+F10 or Ctrl+F10 or F10.
  But what i wanted is that to look-up them separately say if it is Shift+F10 then tell me the user pressed Shift+F10,if it is F10 then tell me the user pressed F10.
  How can i get there a simple way?</p>