First page Back Continue Last page Graphics
Keyboard
There are built-in variables for the Keyboard:
- has a key been pressed?
- keyPressed: “True” if key was pressed
- what key was pressed?
- key: holds only key chars like 'a' and '7'
- what special key was pressed?
- keyCode: holds special chars:
- 'CTRL', 'ENTER', 'ESC', 'DELETE', etc
- the arrow keys: 'UP', 'DOWN', 'LEFT', and 'RIGHT'