code: function(e) {
              if (!this.options.keyboard) return;
  
              var key = e.keyCode || e.which;
  
              // Enter: valid
              if (key == 13 && this.options.keyboardEnter) {
                  this.actionConfirm(e);
              } else
              // Esc: close
              if (key == 27) {
                  this.close(e);
              }
          }
docs: /*
  (event) keydown