GetKeyState function user32

int GetKeyState(
  1. int nVirtKey
)

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).

SHORT GetKeyState(
  int nVirtKey
);

Implementation

int GetKeyState(int nVirtKey) => _GetKeyState(nVirtKey);