title: NSWindow doesn't receive keyboard events
body: <p>I am creating an NSWindow from a bundle loaded at runtime so I don't have the source code for the NSWindow that is created at app launch. When I show my window, it receives mouse event but it does not receive any keyboard events. I have tried adding the window with the following methods:</p>
  
  <pre><code>[_myWindow makeKeyAndOrderFront:nil];
  [[NSApplication sharedApplication].mainWindow addChildWindow:_myWindow ordered:NSWindowAbove];
  [NSApp beginModalSessionForWindow:_myWindow];
  </code></pre>
  
  <p>In all 3 cases it appears the main window is eating all the keyboard events. The mouse events also leak through to the original window (I can see mouse over highlights and buttons respond to clicks through my window). I have also tried:</p>
  
  <pre><code>[_myWindow makeMainWindow];
  [_myWindow orderWindow:NSWindowAbove relativeTo:[originalWindow windowNumber]];
  </code></pre>
  
  <p>Any tips to get keyboard events to land on my window would be greatly appreciated.</p>