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

# keyCell

The cell that will be clicked when the user presses the Space bar.

```
var keyCell: NSCell? { get set }
```

## See Also

[`tabKeyTraversesCells`](/documentation/AppKit/NSMatrix/tabKeyTraversesCells)

A Boolean that indicates whether pressing the Tab key advances the key cell to the next selectable cell.



---

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)