GetKeyboardState copies the status of the 256 virtual keys to the specified buffer.

SetKeyboardState copies a 256-byte array of keyboard key states into the calling thread’s keyboard-input...