up and down arrow keys can move history