make zoomed window a key window
restore key window after zooming out