Expose the keyView as a property and fallback to the last view on the window hierarchy when it's not set