A P P E N D I X B
Key Codes
Key codes returned by Event.keyCode.
These map directly to a physical key on the keyboard. Use lower case: Input.GetKeyDown("i"), Input.GetKey ("escape"), Input.GetKeyDown("f1")
Values | |
None | Not assigned (never pressed) |
Backspace | Backspace key |
Delete | Forward delete key |
Tab | Tab keyrt |
Clear | Clear key |
Return | Return key |
Pause | Pause on PC machines |
Escape | Escape key |
Space | Space key |
Keypad0 | Numeric keypad 0 |
Keypad1 | Numeric keypad 1 |
Keypad2 | Numeric keypad 2 |
Keypad3 | Numeric keypad 3 |
Keypad4 | Numeric keypad 4 |
Keypad5 | Numeric keypad 5 |
Keypad6 | Numeric keypad 6 |
Keypad7 | Numeric keypad 7 ... |
Get Beginning 3D Game Development with Unity: The World's Most Widely Used Multi-platform Game Engine now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.