GetKeyState function user32
Retrieves the status of the specified virtual key.
The status specifies whether the key is up, down, or toggled (on, off—alternating each time the key is pressed).
To learn more, see learn.microsoft.com/windows/win32/api/winuser/nf-winuser-getkeystate.
Implementation
@pragma('vm:prefer-inline')
int GetKeyState(int nVirtKey) => _GetKeyState(nVirtKey);