Or how do I send the same commands?
I want my app to be able to play/pause/etc. the currently-playing media in a desktop environment (Windows / macOS / Linux), but looking through the keys that Robot can press, these aren't there.
I looked briefly at jintellitype, but that doesn't seem to be what I want (something about running an Apache server?)
Is there any way to press these media keys or send similar commands to the OS using Java*? This can be anything in Java SE (AWT/Swing/FX/etc.) or some other free library.
* I'm actually using Kotlin, in case that helps