---
title: makeKey()
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nswindow/makekey()
---

# makeKey()

Makes the window the key window.

## Declaration

```swift
func makeKey()
```

## See Also

### Related Documentation

- [makeMain()](appkit/nswindow/makemain().md)

### Managing Key Status

- [isKeyWindow](appkit/nswindow/iskeywindow.md)
- [canBecomeKey](appkit/nswindow/canbecomekey.md)
- [makeKeyAndOrderFront(_:)](appkit/nswindow/makekeyandorderfront(_:).md)
- [becomeKey()](appkit/nswindow/becomekey().md)
- [resignKey()](appkit/nswindow/resignkey().md)
