GetKeyboardKeyState
Checks if the specified keyboard key is down and if it is toggled.
Syntax
C++
Python
def GetKeyboardKeyState( *, inKeyCode: int = 0 ) -> ( outIsDown: bool, outIsToggled: bool )
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inKeyCode | int | 0 | Virtual key code. See documentation for a complete table. |
![]() |
outIsDown | bool | Informs if the specified keyboard key is being pressed at the moment. | |
![]() |
outIsToggled | bool | Informs about the state. Important for keys such as CapsLock. |


