Click to reopen instructions.
Similar to the animation framework. This one has two methods registerOnKeyDown and registerOnKeyUp that you can use to install functions that get called whenever a key is pressed (registerOnKeyDown) and released (registerOnKeyUp).
registerOnKeyDown
registerOnKeyUp