---
title: keyCell
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsmatrix/keycell
---

# keyCell

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

## Declaration

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

## See Also

### Related Documentation

- [tabKeyTraversesCells](appkit/nsmatrix/tabkeytraversescells.md)

### Selecting and Deselecting Cells

- [selectCell(atRow:column:)](appkit/nsmatrix/selectcell(atrow:column:).md)
- [selectCell(withTag:)](appkit/nsmatrix/selectcell(withtag:).md)
- [selectAll(_:)](appkit/nsmatrix/selectall(_:).md)
- [setSelectionFrom(_:to:anchor:highlight:)](appkit/nsmatrix/setselectionfrom(_:to:anchor:highlight:).md)
- [deselectAllCells()](appkit/nsmatrix/deselectallcells().md)
- [deselectSelectedCell()](appkit/nsmatrix/deselectselectedcell().md)
