The problem might be with your keyboard. To verify this, connect another keyboard and observe the results. If the problem disappears, it might mean your keyboard is faulty or that its Caps Lock key ...
Learn why iOS 26.4 solves the keyboard bug but requires resetting your keyboard dictionary to fully fix typing issues.