---
title: selectionKeysKeylayout()
framework: InputMethodKit
role: symbol
role_heading: Instance Method
platforms: [macOS 10.5+]
path: inputmethodkit/imkcandidates/selectionkeyskeylayout()
---

# selectionKeysKeylayout()

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

## Declaration

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

## Return Value

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

## See Also

### Managing Selection Keys

- [setSelectionKeys(_:)](inputmethodkit/imkcandidates/setselectionkeys(_:).md)
- [selectionKeys()](inputmethodkit/imkcandidates/selectionkeys().md)
- [setSelectionKeysKeylayout(_:)](inputmethodkit/imkcandidates/setselectionkeyskeylayout(_:).md)
