keyDown

fun keyDown(key: Keys)

This method should be called when a non-printable, but representable key is pressed.


fun keyDown(code: Int)

This method should be called when a non-representable key is pressed.

This is used solely for keybinding, and so the key can be any value, as long as it is consistent, and unique to that key.