properly implement alt-tab keyboard grabing