<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: 10.0.0 - 10.12.0"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSFunctionKeyMask",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@NSFunctionKeyMask"
  },
  "title" : "NSFunctionKeyMask"
}
-->

# NSFunctionKeyMask

A function key has been pressed.

```
static const NSEventModifierFlags NSFunctionKeyMask;
```

## Discussion

The numeric keypad is generally on the right side of the keyboard. This is also set if any of the arrow keys are pressed ([`NSUpArrowFunctionKey`](/documentation/AppKit/NSUpArrowFunctionKey), [`NSDownArrowFunctionKey`](/documentation/AppKit/NSDownArrowFunctionKey), [`NSLeftArrowFunctionKey`](/documentation/AppKit/NSLeftArrowFunctionKey), and [`NSRightArrowFunctionKey`](/documentation/AppKit/NSRightArrowFunctionKey)).

---

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)