I programmed the on-screen keyboard in Java. This works very well when you want to try out Java components and Java frames. When you want to overturn every open window, you need to send a key event by executing the sender of the robot. The problem is that the focus owner gets a folded key, and when you open the keyboard, the keyboard has focus. As far as I know, you cannot implement the global Java keyboard.
If you want to use only the keyboard for Java, use Java. Otherwise, you must use a different language.
You must use your native language, in which you can contact the owner of the OS or in a language in which you can completely turn off the keyboard focus, and can also bring the keyboard to the front of the screen.
source share