Fix: up key logic

When up key stroked and results DOM was at the top of $elem,
focus on the last item of results, not the first.