Keyboards are highly deterministic. And when they're not, e.g. due to physical wear or software glitches, this makes them basically unusable for touch typists.
My keyboard doesn't randomly input "banana" when I type "apple". If it did, it would be considered extremely defective.
Unless you're on iOS. Then it's a shipped "feature".