Map Caps to ESC
GitHub - dreamsofcode-io/escapecontrol Turning the worst key on a keyboard into the most useful one - YouTube
You would update it in Settings->keyboard->keyboard shortcut->modifier keys on Mac
Do remember, you need to do this for every keyboard you have. So do this for the internal keyboard and then when you have your shiny mehcanical keyboard connected, do it for that too.