---
title: makeKey()
framework: uikit
role: symbol
role_heading: Instance Method
path: uikit/uiwindow/makekey()
---

# makeKey()

Makes the window the key window.

## Declaration

```swift
func makeKey()
```

## Discussion

Discussion Use this method to make the window key without changing its visibility. The key window receives keyboard and other non-touch related events. This method causes the previous key window to resign the key status.

## See Also

### Making windows key

- [isKeyWindow](uikit/uiwindow/iskeywindow.md)
- [canBecomeKey](uikit/uiwindow/canbecomekey.md)
- [makeKeyAndVisible()](uikit/uiwindow/makekeyandvisible().md)
- [becomeKey()](uikit/uiwindow/becomekey().md)
- [resignKey()](uikit/uiwindow/resignkey().md)
