Kasa integration with an IR based remote via HA

I realize this will be a bit odd, but what I want to accomplish is to use an IR based handheld remote to control my Kasa switches and devices in my theater. I would guess I would need HA and an IR receiver for it, but not sure what else to do. Thoughts?

Sure you want IR?
If you use those “airmouse” remote over 2.4GHz (or any keyboard-like wireless device, really), you get a USB dongle to insert in your HA server , then you can use

You can also use bluetooth remotes, but that’s trickier

yep, I want IR because I want to do everything from the handheld remote.