private function onKeyDown(e:KeyboardEvent = null) { if(e.keyCode == Key.ESCAPE) { toggleFullscreen(true); } }
private function onKeyDown(e:KeyboardEvent = null) { #if flash if(e.keyCode == Key.ESCAPE) { toggleFullscreen(true); } #end }