Читаем pdsk docs:
These left- and right-distinguishing constants are available to an application only through the GetKeyboardState, SetKeyboardState, GetAsyncKeyState, GetKeyState, and MapVirtualKey functions.
...
Minimum operating systems Windows 95, Windows NT 3.1
Так что ищите багу у себя

.