Remapping the command key to alt is a pretty straightforward feature built into the OS.
Personally, I find the macOS behavior really irritating and unintuitive, but thankfully there are plenty of apps out there that solve this issue so it's not really a problem.