Not yet investigated keyd.
I still use good old .Xmodmap tricks on Linux, and AutoHotKey on Windows. Plus some VIA macros directly on my programmable keyboard.
And I [plan to] investigate kanata (https://github.com/jtroo/kanata)
One nice feature it has over AutoHotKey[^1] is that it can use Interception (a keyboard filter driver) to handle keys earlier, which lets it work in more situations (e.g across RDP sessions). Interception itself though does have a bug where if you keep adding/removing devices it will stop working until you restart.
1: I've seen an Interception module for AHK, but it's not built in like Kanata's