Must click on window before keyboard input recieived

I found a reference where Jules answered the reason. (Setting the keyboard focus initially)
I added a timer at startup, grabbed focus in the timer callback and it worked.