it's better to use PageUP and PageDown keys in order to search in history