code: function(e) {
  			var code    = e.keyCode,
  				ctrlKey = !!(e.ctrlKey || e.metaKey),
  				isMousedown = e.type === 'mousedown',
  				ddm;
  
  			!isMousedown && (self.keyState.keyCode = code);
  			self.keyState.ctrlKey  = ctrlKey;
  			self.keyState.shiftKey = e.shiftKey;
  			self.keyState.metaKey  = e.metaKey;
  			self.keyState.altKey   = e.altKey;
  			if (isMousedown) {
  				return;
  			} else if (e.type === 'keyup') {
  				self.keyState.keyCode = null;
  				return;
  			}
  
  			if (enabled) {
  
  				$.each(shortcuts, function(i, shortcut) {
  					if (shortcut.type    == e.type 
  					&& shortcut.keyCode  == code 
  					&& shortcut.shiftKey == e.shiftKey 
  					&& shortcut.ctrlKey  == ctrlKey 
  					&& shortcut.altKey   == e.altKey) {
  						e.preventDefault();
  						e.stopPropagation();
  						shortcut.callback(e, self);
  						self.debug('shortcut-exec', i+' : '+shortcut.description);
  					}
  				});
  				
  				// prevent tab out of elfinder
  				if (code == $.ui.keyCode.TAB && !$(e.target).is(':input')) {
  					e.preventDefault();
  				}
  				
  				// cancel any actions by [Esc] key
  				if (e.type === 'keydown' && code == $.ui.keyCode.ESCAPE) {
  					// copy or cut 
  					if (! node.find('.ui-widget:visible').length) {
  						self.clipboard().length && self.clipboard([]);
  					}
  					// dragging
  					if ($.ui.ddmanager) {
  						ddm = $.ui.ddmanager.current;
  						ddm && ddm.helper && ddm.cancel();
  					}
  					// button menus
  					self.toHide(node.find('.ui-widget.elfinder-button-menu.elfinder-frontmost:visible'));
  					// trigger keydownEsc
  					self.trigger('keydownEsc', e);
  				}
  
  			}
  		}
docs: this.time('load');