Moves the cursor generally to the end of the line. It does one of the following:
If the cursor is in the middle of a line, move it to just after the last non-white space character on the line.
If the cursor is after the last non-white space character, move it to the actual end of the line.
If the cursor is already at the end of the line, move to the end of the file.