   editContext.selectionEnd + 1,
            ""
          );
          editContext.updateSelection(editContext.selectionEnd, editContext.selectionEnd);
        } else {
          editContext.updateText(
            editContext.selectionStart,
            editContext.selectionEnd,
            ""
          );
          editContext.updateSelection(editContext.selectionStart, editContext.selectionStart);
        }
      } else if (e.key == "ArrowLeft") {
        let newPos = editContext.selectionStart - 1;
    