Handle Ctrl+C and backspace in raw mode.