<!--
{
  "availability" : [
    "macOS: 10.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "InputMethodKit",
  "identifier" : "/documentation/InputMethodKit/IMKCandidates/selectionKeysKeylayout()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "InputMethodKit"
    ],
    "preciseIdentifier" : "c:objc(cs)IMKCandidates(im)selectionKeysKeylayout"
  },
  "title" : "selectionKeysKeylayout()"
}
-->

# selectionKeysKeylayout()

Returns the key layout that maps virtual key codes to selection keys.

```
func selectionKeysKeylayout() -> Unmanaged<TISInputSource>!
```

## Return Value

The key layout in use. By default this is the key layout whose source id is `com.apple.keylayout.US`.

---

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)