I\'ve often struggled with simulating keyboard press events for various bots, or other GUI automating programs.
I\'ve managed to simulate keydown events using:
To simulate keyboard events in directX games you need wrapper for a keyboard driver. I had the same issue, and neither of this methods (SendInput, SendKeys class) doesn't help me. Try to use this wrapper, to me it was successfully.