Updating Data Input - Serial port

At first, thank you for your answers. I know my code is not perfect (how could it be, I started programming in general only a couple of weeks ago (Python), and I started C last week.) ...but still, I have the feeling I didn't get to make my point clear: I am fine with how the program works. It translates my message and it already "sends" (blinking) it only once. I just want to stop it in the middle of that. . Like, I've typed in a really long message. It blinks and blinks and blinks. Then I decide, hey, no, I don't want to send that message anymore, I want to send something else. So I interrupt the blinking.
Does that appear comprehensible? :confused: