The keyboard functions allow an application to get/set keyboard state.
These functions include:
| Function | Description |
| GetAsyncKeyState | Returns interrupt-level information about the key state |
| GetKeyboardState | Copies an array that contains the state of keyboard keys |
| GetKeyNameText | Retrieves a string containing the name of a key from a list maintained by the keyboard driver |
| GetKeyState | Retrieves the state of a virtual key |
| MapVirtualKey | Accepts a virtual-key code or scan code for a key and returns the corresponding scan code,virtual-key code, or ASCII value |
| SetKeyboardState | Sets the state of keyboard keys by altering values in an array |
| VkKeyScan | Translates an ANSI character to the corresponding virtual-key code and shift state for the current keyboard |
| ToAscii | Translates a virtual-key code to the corresponding ANSI character or characters |