add Keyboard Listener
Adds a keyboard event listener to this object.
Parameters
listener
The listener interface to add
Adds a keyboard event listener using a lambda function.
Parameters
listener
Lambda function that receives the object and keyboard event