Add an event to be fired when the given key changes.
The code of the key to add the event to.
The function to call when the key state changes.
See Implementation
Add an event to be fired when the given key changes.