macOS provides an enhanced keyboard remapping feature that allows you to change the behavior of the special modifier keys on your Mac's keyboard, such as Caps Lock (⇪), Control (⌃), Option (⌥) and Command (⌘).
For example, you could remap the Caps Lock key to trigger the Escape command.
This feature is especially useful if you’re familiar with a keyboard layout different from your current keyboard or are an experienced touch typist who finds some of the default modifier key actions a bit awkward to use. In this tutorial, you'll learn about remapping the Mac's modifier keys to non-default actions.