Handle the case where our window is the key window.