Repeat previous commands with up key