Making media keys work in Qubes

Is it possible? For example, by pressing the play/pause special keyboard key, it would play/pause a video in some AppVM.

I tried installing and running playerctl play-pause in dom0 but it doesn’t work.

I guess you can bind the media keys in dom0 to execute some script that will send the command using qvm-run to the specific qube (or multiple qubes).