title: CGEventPostToPSN not working for cgkeycode (56)
body: <p>I am trying to send keyboard event to a process. Seding keys like 'a', 'v' 't' ... works fine but keys such as space, command, control doesn't work. Here's what I am doing:</p>
  
  <pre><code>CGEventRef e1 = CGEventCreateKeyboardEvent(NULL, (CGKeyCode)55, YES);
  CGEventRef e4 = CGEventCreateKeyboardEvent(NULL, (CGKeyCode)0, YES);
  
  CGEventPostToPSN(&amp;spotPSN, e1);
  CGEventPostToPSN(&amp;spotPSN, e4);
  </code></pre>
  
  <p>e4 works, but e1 doesn't. My purpose here is to send command+a for select all.
  Thanks.</p>