Hi Henrik,
thanks for the speedy reply!
I agree with your reading of the docs - looks like the service shouldn't be able to modify the event at all.
I also tested with an external USB keyboard and found the same behaviour, so it's not specific to the physical Samsung keyboard.
I also recorded a little screen video to show you what happens - I am typing the same three keys, without/with/without the Automate service running. I'll send that in a separate email as it's a little large.
After playing around a little more I managed to create a situation where the "bug"was turned on permanently even after disabling the Automate service. I was able to resolve it by removing additional input languages for the Samsung keyboard. Then, turning on Automate service again, it was broken again. However, leaving the Automate service off, I was able to re-enable additional languages and everything works fine. But it hints at some weird interaction between your service and the Samsung keyboard (which cannot be disabled for the cover keyboard).
I'll try and do some more testing - also on a non-Samsung device.
If you would like me to test a modified service, just let me know. Maybe your code could make a copy of the event data itself to prevent modifying it or just not touch it at all (just for testing). Happy to help in any way I can.
Best regards,