Added ability to recall history via arrow keys