Ubuntu 24.04.3 LTS Keyboard Media keys stop working

I haven’t found a reason why it happens, but the media keys occasionally just revert to normal function keys.

Using fn lock to get them back doesn’t work and I need to reboot to get the functionality back.

Is there a command line I can run to just restore the media key operation without needing to reboot?