register Key Typed
Registers a method to be run while gui is open. Registered method runs on key input. Arguments passed through to method:
char typed character
int key code
Return
the trigger
Parameters
method
the method to run