Can you be more specific? How the hack works... DLL, Trainer, WriteProcessMemory(), errors?, injected properly?, what the hack does and how it does it basically. That or post the source code.
Make sure you have the right virtual key code and put that statement in an infinite loop. I'm assuming you don't have that, I can't tell much from what you've given us.