code: function (e) {
              if (e.keyCode === KeyEvent.DOM_VK_ESCAPE) {
                  this.props.actions.cancelRename();
              } else if (e.keyCode === KeyEvent.DOM_VK_RETURN) {
                  this.props.actions.performRename();
              }
          }
docs: If the user presses enter or escape, we either successfully complete or cancel, respectively,
  the rename or create operation that is underway.