Am curious now how well that works via xrdp then as xkeysnail & other uinput methods don’t.
The killer for me is if/when my mouse doesn't work well enough or latency spikes if video card, so I ended up for the Proxmox setup to use PCIe Aorus NVMe card with two NVMe in RAID0 instead of SATA or PCIe. Now it works reasonably well. I think its related to my board having 20 PCIe lanes, 16 of which used for GPU. But we've come a long way I/O wise for PC (x86-32).
On another note, Blizzard might ban me for Proxmox usage since they changed policy when GeForce Now became a thing (they never did for AHK and I used it for about 10 years now, some of which I played the game intensive but they did do banwaves). Who knows what Square Enix policy is going to be. If they ban me I will appeal, tell them my setup, show them my script, and that I have a swollen nerve on my hand (work related injury). If a human reads it and believes me, at least they'll shake tbeir head concerning their policy. Or so I hope.
On macOS I use Hammerspoon and Karabiner Elements but that machine isn't used for gaming. Similar tools, different purpose. Though I do always rebind caps lock...