It sounds like your wife's computer may have experienced a glitch in the keyboard mapping settings. Keyboard mapping is a feature of the operating system that maps key presses to specific characters or functions. When there's a problem with keyboard mapping, it can cause unintended results like the ones you described.
One cause of keyboard mapping issues could be a software bug or corruption in the operating system. This can usually be fixed by running a system scan or by reinstalling the operating system.
Another cause could be a problem with the hardware itself. If the keyboard is physically damaged or malfunctioning, it may cause erratic behavior like the one you described. In this case, replacing the keyboard or repairing it may be...