Bahaha I got sick of that hook library and used something else.
Here is a working project that detects key events globally and displays a msgbox with the key data. Put the compiled dll and KeyHook.dll in the plugins folder and check it out.
its a great little library, add the KeyHook.lib to your project and include KeyHook.h (very well documented) and away you go.