JNativeHook is a library to provide global keyboard and mouse listeners for Java. This will allow you to listen for global shortcuts or mouse motion that would otherwise be impossible using pure Java.
Microsoft ships Agent Framework 1.0 but Azure's agent stack still spans too many surfaces while Google and AWS offer cleaner developer paths.