Check for input cancel