filterKeypress
Allow an input method to internally handle key press and release events.
If this function returns true, then no further processing should be done for this key event.
Return
true if the input method handled the key event.
Parameters
event
the key event