Some help with Serial connection

...so it would inject the data in whatever app has focus at the moment, right ? If that's the case, the there's a chance that having the "wrong" app in focus while the data comes in would make "strange" things happen...