I should mention, the whole way the hacks these days receive input via the keyboard is rather flawed and poorly done. You're better off hooking the win32 callback of your target, write a class that manages all the received input from there, and have it call routines which require notification that the key was pressed(via callback registration). If an approach like this was taken in real software it would be acceptable, however the one used by most hacks these days, you mid as well tell your employer to fire you.