make zoomed window a key window
restore key window after zooming out
Merge pull request #6 from paulz/master

Edit menu is not showing after zooming in