added down arrow and up arrow funcationality of gui command line