There will be some programming interface for listening to these buttons, and it is unlikely that it will be connected to the built-in Java virtual machine. I would consider writing a program / service / that listened to these button presses that I could compile into a Windows DLL, and then I would name the DLL from a Java program. Windows DLLs can listen to things, and Java classes can register as listeners for events from the DLL. It is unlikely to be trivial, the most difficult for me will be the DLL program itself (there is no java there, C or C # or something that Microsoft likes), followed by its own Java interface or API or something else to call Dll.
If you get to this, I recommend a product whose name I do not remember; it allows you to call DLLs without using any JNI glue code, i.e. Before, you had to write C code with a very specific set of rules for invoking Java, and this other product completely eliminates this.
Good luck.
source share