improvements to fullscreen, on request from Paul Ojanen: when in fullscreen mode, ESC should trigger an exitFullScreen event instead of stopping execution. Also clean up some duplicate/ugly code, and improve behavior on IE