title: ctrl is still pressed even after the program is terminated
body: <p>I create an algorithm that copies some data from one file and pastes it into the program.
  To copy this data I use this:</p>
  <pre><code>keybd_event (VK_CONTROL, 0, KEYEVENTF_EXTENDEDKEY, 0);
  sleep (500);
  keybd_event (VK_CONTROL, 0, KEYEVENTF_KEYUP, 0);
  keybd_event (0x43, 0, KEYEVENTF_EXTENDEDKEY, 0);
  Sleep (1);
  keybd_event (0x43, 0, KEYEVENTF_KEYUP, 0);
  </code></pre>
  <p>Everything works fine, but after I stop the program, ctrl is still pressed and I have to reset my pc to turn it off. I tried to change the order but still nothing.</p>
  <pre><code>keybd_event (VK_CONTROL, 0, KEYEVENTF_EXTENDEDKEY, 0);
  keybd_event (0x43, 0, KEYEVENTF_EXTENDEDKEY, 0);
  sleep (500);
  keybd_event (VK_CONTROL, 0, KEYEVENTF_KEYUP, 0);
  Sleep (1);
  keybd_event (0x43, 0, KEYEVENTF_KEYUP, 0);
  </code></pre>
  <p>What should I do to fix this?</p>