Control Firefox with ir or rf remote control

I am building a htpc using ubuntu 22.04 and using kodi for my audio and
video library and cable tv channels (HDHomerun). For streaming services
I am using Firefox to steam MHz Choice, PBS Passport, etc. since ubuntu
does not have streaming apps. My question is there anyway (addon) to
navigate Firefox with a ir or rf remote control so I do not have to use
a mouse. I am looking to emulate the sort of remote control interfaces
that the streaming apps use on android. I am using linux instead of
android since I have used it for over 20 years and know how to script,
remap input, and control remotes. Any suggestions.