Continued functionality for up key, added functionality for down key

Up key now cycles through all entered commands.
Down key cycles through the entered commands in reverse order.