A Keylistener receives keyevent callbacks on KeyEvents that are produced by a specific component.
creates a keylistener that calls the callback function if the Keyeventtype matches the given filter.
Callbackfunction signature:function listener (KeyListener, KeyEvent)