Keyboard API - ProfessorCrown/WIKI-RUSSIA GitHub Wiki
This library listens user interactions with keyboard and provides information about it.
keyboard.isKeyDown(int code): boolean isKeyDown
Checks if given keyboard key code is pressed by user.
keyboard.isControl(int code): boolean isControl
Checks if given keyboard key code belongs to control block, i.e. non-literal, non-numeric, etc.
keyboard.isControlDown(): boolean isControlDown
Checks if Ctrl
key is down.
keyboard.isShiftDown(): boolean isShiftDown
Checks if Shift
key is down.
keyboard.isAltDown(): boolean isAltDown
Checks if Alt
key is down.