code: function(e) {
          var KEYS = YAHOO.util.KeyListener.KEY;
  
          if (YAHOO.util.Event.getCharCode(e) == KEYS.ENTER) {
              YAHOO.util.Event.preventDefault(e);
              this.submit();
          }
      }
docs: Default Keyboard event handler to capture Enter
  on the Navigator's year control (yearEl)
  
  @method _handleEnterKey
  @protected
  @param {Event} e The DOM event being handled