Hi all,

I'm trying to "catch" the escape key being press with the following:

Code:
 $(document).keyup(function(e) {
            if( e.keyCode==27 && popupStatus==1){
                alert('Handler for .keypress() called.');
	        disablePopup();
		    }

        });
However its not working - but I dont understand why - anyone have opinions?