I was able to remap keys per keyboard on MacOS somehow ... can't quite recall how I did it (used it to remap command and windows key on the external but not the laptop keyboard).
Yeah, I've used that, but MacOS has the modifier keys built in now - System Preferences -> Modifier Keys - Caps, Control, Option, Command, Function are all there.