⌨️ Add user-customizable global keyboard shortcuts (hotkeys) to your macOS app in minutes - sindresorhus/KeyboardShortcuts
How is it different from MASShortcut?
This package:
Written in Swift with a swifty API.
More native-looking UI component.
SwiftUI component included.
Support for listening to key down, not just key up.
Swift Package Manager support.
Connect a shortcut to an NSMenuItem.
Works when NSMenu is open (e.g. menu bar apps).