up/down history in input