I think the right command is "cursorEnd" because "cursorEndSelect" will select the text from the current position to the end of the line. However, I think you want to move the cursor to the end of the line, so you need to use the command I mentioned before.