; KeyIsDown := GetKeyState("KeyName" [, "Mode"]) State := GetKeyState("RButton", "P") ; Right mouse button. P = Physical state.