This callback is called when a key is pressed.
function lovr.keypressed(key, scancode, repeating) -- your code here end
|key||KeyCode||The key that was pressed.|
|scancode||number||The id of the key (ignores keyboard layout, may vary between keyboards).|
|repeating||boolean||Whether the event is the result of a key repeat instead of an actual press.|