Let user move the cursor using the HOME and END keys.
Reset cursor position when ENTER is pressed.