Support displaying previous commands with down/up key in the console