escape

Press escape (or Ctrl+Enter) while editing text to apply the new value (to add or edit text on a shape, select it and start typing, or double-click anywhere to add a text label)