browsing through history with up and down keys