I would like to have a boolean event toggle when a key is pressed. Specifically, the \'s\' key. I have been pointed to the function GetKeyState(), which supposedly works und
Bit late for this but the high order bit is 0x80000000 not 0x8000, change this and it will work fine.
The other bit - useful for nothing - it acts as if you pressed CAPS LOCK when you pressed LSHIFT.