History search with up/down