Added support for Ctrl+C to clear input textfield and reset iterator for
command history