Handle moving caret to end of input.