Makes the receiver the key window.
- iOS 2.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
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.