Now I can use my Xbox controller as joystick (thanks to Markus), I also want to catch a key click from my keyboard.
First I did try to use the keyboard service, but this only works when the button of this service has focus and could nog figure out how to solve this.
So, as an alternative, I now try to use the joystick service for this purpose.
It works great, but again focus is a problem.
Now the onJoystickInput function is only activated in the swing-gui and not in the web-gui.
Who knows a solution to get focus on the keyboard service and/or the joystick service?