function closeModalsKeyboardPressed() {
	$(document).keyup(function(e) {
	    if (e.keyCode == 27) { // escape key maps to keycode `27`
	        hideWriter('slow');
	        hideReader();
	    }
	});
}
// Close the modals when ESC key is pressed
Close the modals when ESC key is pressed
Close the modals when ESC key is pressed
function closeModalsKeyboardPressed() {
	$(document).keyup(function(e) {
	    if (e.keyCode == 27) { 
	        hideWriter('slow');
	        hideReader();
	    }
	});
}
function closeModalsKeyboardPressed ( ) { $ ( document ) . keyup ( function ( e ) { if ( e . keyCode == 27 ) { hideWriter ( 'slow' ) ; hideReader ( ) ; } } ) ; }
Close the modals when ESC key is pressed
Close the modals when ESC key is pressed
// escape key maps to keycode `27`