That's not what I told you to do... And I see you didn't even read the docs of a method you used:
Note that the filter is not invoked for keys generated by virtual keyboard drivers (i.e., events sent using the sendKeyEvent() function).
I told you to install an event filter on the application object and not to set a keyboard filter on the server object.