What program are the keystrokes getting sent to? If it's protected by GameGuard or a similar anti-cheat program, the injected keystrokes will not be received.