title: Sending key "hangs" PC in C#
body: <p>My PC hangs when I <code>send key</code> in <code>Form_Shown()</code> and placing <code>Breakpoint</code> at <code>Form_KeyDown()</code></p>
  
  <pre><code> private void Form1_KeyDown(object sender, KeyEventArgs e)
   {           //breakpoint here
          if (e.KeyCode == Keys.A)
          {
              MessageBox.Show("caught");
          }
   }
   private void Form1_Shown(object sender, EventArgs e)
   {
          SendKeys.Send("A");
   }
  </code></pre>