treetalker
16 hours ago
For more advanced mapping (should you need it — see al_borland's comment) check out Karabiner Elements. It's been rock solid for me.
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.)