Added escape key for switching to commands while waiting for input