Karabiner
Karabiner is a keyboard customization tool for macOS that enables users to remap keys, alter keyboard behavior, and apply complex input rules. It originated as KeyRemap4MacBook in the early 2010s and was later renamed Karabiner. Development later split into Karabiner-Elements, a modern rewrite designed to support recent macOS versions and Apple Silicon.
Its architecture includes a background service that intercepts keyboard events, a configuration format based on JSON,
Configuration is stored in a karabiner.json file (in the user's configuration directory), and can be edited directly
Karabiner-Elements is the current and actively maintained version; Karabiner remains a widely used tool in macOS