Moved ctrl handling to interrupt code... need to add switch for raw mode