Support displaying previous commands with down/up key in command line