Adding escape and navigating previous and next command history function(not for param yet)