Keyboard Keys
Keyboard key names available per platform. Use these names as the keycode parameter
in keyboard functions.
Note
Key names are platform-specific. Always check the table for your target platform.
Use keys_table and get_special_table() at runtime to get the exact keys
available on the current system.
Windows
Common keys:
Key Name |
Description |
|---|---|
|
Letter keys |
|
Number keys |
|
Function keys |
|
Enter / Return |
|
Tab |
|
Space bar |
|
Backspace |
|
Escape |
|
Left / Right Control |
|
Left / Right Shift |
|
Left / Right Alt |
|
Left / Right Windows key |
|
Arrow keys |
|
Insert / Delete |
|
Home / End |
|
Page Up / Page Down |
|
Caps Lock |
|
Num Lock |
|
Print Screen |
|
Numpad keys |
|
Numpad operators |
|
Application / Menu key |
|
Browser navigation keys |
|
Volume control keys |
Tip
For the complete list of 200+ Windows keys, use keys_table at runtime:
from je_auto_control import keys_table
for key_name in sorted(keys_table.keys()):
print(key_name)
Linux (X11)
Common keys:
Key Name |
Description |
|---|---|
|
Letter keys |
|
Number keys |
|
Function keys |
|
Enter / Return |
|
Tab |
|
Space bar |
|
Backspace |
|
Escape |
|
Left / Right Control |
|
Left / Right Shift |
|
Left / Right Alt |
|
Left / Right Super (Windows) key |
|
Arrow keys |
|
Insert / Delete |
|
Home / End |
|
Page Up / Page Down |
|
Caps Lock |
|
Num Lock |
Tip
Linux supports 380+ key codes. Use keys_table at runtime for the complete list.
macOS
Common keys:
Key Name |
Description |
|---|---|
|
Letter keys (mapped to macOS virtual key codes) |
|
Number keys |
|
Function keys |
|
Enter / Return |
|
Tab |
|
Space bar |
|
Backspace / Delete |
|
Escape |
|
Command key |
|
Left / Right Shift |
|
Left / Right Option (Alt) |
|
Control |
|
Arrow keys |
|
Home / End |
|
Page Up / Page Down |
|
Caps Lock |
|
Volume control keys |
Tip
macOS supports 170+ key codes. Use keys_table at runtime for the complete list.