Moved ESC to keyup - safari is apparently trigger happy