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

# tabKeyTraversesCells

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

```
var tabKeyTraversesCells: Bool { get set }
```

## Discussion

When the value of this property is <doc://com.apple.documentation/documentation/Swift/true>, pressing the Tab key should advance the key cell to the next selectable cell in the receiver. When the value of this property is <doc://com.apple.documentation/documentation/Swift/false> or if there aren’t any selectable cells after the current one, the next view in the window becomes key when the user presses the Tab key.

Pressing Shift-Tab causes the key cell to advance in the opposite direction (if the value of this property is <doc://com.apple.documentation/documentation/Swift/false>, or if there aren’t any selectable cells before the current one, the previous view in the window becomes key).

## See Also

[`selectKeyView(following:)`](/documentation/AppKit/NSWindow/selectKeyView(following:))

Gives key view status to the view that follows the given view.

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

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

[`selectNextKeyView(_:)`](/documentation/AppKit/NSWindow/selectNextKeyView(_:))

Searches for a candidate next key view and, if it finds one, tries to make it the first responder.



---

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)