I tried a bunch of things, set it to british and british pc layouts. But all of them did fine. I'm using a framework called Dragonruby and reached out in the discord to see if this is a bug.
If you want to try another of my typing games to rule out the hardware. Curious if the input will have issues too. Made this in Godot few years ago https://iamernesto.itch.io/below-the-surface