Keyboard Maestro will also do the trick, but Karabiner Elements might be lower-level and less fuss once you get it set up. Still, Keyboard Maestro is de rigueur on macOS, and worth every penny. You should buy a license anyway. (I'm not affiliated with KM, just a very happy user for many years.)
Bender•1h ago
If registering an account there to ask questions, lurk for a while. They have a unique ettiquite.
[1] - https://superuser.com/search?q=map+windows+keyboard+on+mac