so the next render picks them up.
      textFormats = e.getTextFormats();
    });

    canvas.addEventListener("keydown", e => {
      if (e.key == "Backspace" && editContext.selectionStart > 0) {
        if (editContext.selectionStart === editContext.selectionEnd) {
          editContext.updateText(
            editContext.selectionStart - 1,
            editContext.selectionStart,
            ""
          );
          editContext.updateSelection(editContext.selectionStart - 1, editContext.selectionStart -