lectionStart, newPos);
        } else {
          editContext.updateSelection(newPos, newPos);
        }
      } else if (e.key === "Home") {
        if (e.shiftKey) {
          editContext.updateSelection(0, editContext.selectionEnd);
        } else {
          editContext.updateSelection(0, 0);
        }
      } else if (e.key === "End") {
        if (e.shiftKey) {
          editContext.updateSelection(editContext.selectionStart, editContext.text.length);
        } else {
          editContext.updateSelec