Wayland imposes new rules, and one of those rules being that programs can’t arbitrarily access keystrokes and mouse input. This is done to protect against keyloggers as they are used by malicious actors to gain a bevy of information like passwords, banking information, personal information, etc.
I’m unsure if it’s Firefox, the RMM or both, but the necessary permissions aren’t granted and that’s why it’s not working.