<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSMenuItem/keyEquivalentModifierMask",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSMenuItem(py)keyEquivalentModifierMask"
  },
  "title" : "keyEquivalentModifierMask"
}
-->

# keyEquivalentModifierMask

The menu item’s keyboard equivalent modifiers.

```
var keyEquivalentModifierMask: NSEvent.ModifierFlags { get set }
```

## Discussion

`NSShiftKeyMask` is a valid modifier for any key equivalent in `mask`. This allows you to specify key-equivalents such as Command-Shift-1 that are consistent across all keyboards. However, with a few exceptions (such as the German “ß” character), a lowercase character with `NSShiftKeyMask` is interpreted the same as the uppercase character without that mask. For example, Command-Shift-c and Command-C are considered to be identical key equivalents.

See the [`NSEvent`](/documentation/AppKit/NSEvent) class specification for more information about modifier mask values.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)