Trying to fix UpArrow to search history correctly