On 'esc' and 'Down' key, the history list is updated and the position of the cursor is kept