[Alt-Tab] Unify key-pressed and key-released handling. Execute some actions on key-release instead of on key-press.

Actions that should not be repeated if a key is left pressed down
are best executed on key-release. Close-window is one example,
Zoom is another.