better searching and up/down arrow recognition