Try using Spy++ on the program, so when you press a key, you can see the keydown message come in.