better use if(GetKeyState(5) & 0x8000)
msdn says thats high order bit and its set when the key is pressed