input
The keyboard and the mouse, while the level is played. (Escape always pauses: scripts never see it.)
input.isDown
input.isDown(key)Is a key or a mouse button held right now? Keys by name, in small letters: "a", "space", "left", "left shift"; the mouse's: "mouse left", "mouse right", "mouse middle".
input.keyDown
An event that happens when a key goes down, with the key's name.
input.keyUp
An event that happens when a key comes up, with the key's name.
input.mouseDown
An event that happens when a mouse button goes down, with "left", "right" or "middle".
input.mouseUp
An event that happens when a mouse button comes up.
input.wheel
An event that happens when the mouse wheel turns, with how far (up is more than 0).
input.mouseMove
An event that happens in every step in which the mouse (or a finger) moved the cube, with how far it went: across and down, in tiles. Where the cube is now is player.x and player.y.