function selectNodeAndHitEnter(field, id) {
  const cursor = field.getEditableDomHelper().getElement(id);
  Range.createFromNodeContents(cursor).select();
  return events.fireKeySequence(cursor, KeyCodes.ENTER);
}
Selects the node at the given id, and simulates an ENTER keypress.
@param {?} field The field with the node.
@param {string} id A DOM id.
@return {boolean} Whether preventDefault was called on the event.