press up/down to search history: https://coderwall.com/p/oqtj8w