microsoft.inputstatemanager.dll Error in Windows 10 and 11: Text input inside an app

One application stops accepting composed text or produces duplicate characters while Notepad still works.
The Windows file inventory identifies microsoft.inputstatemanager.dll as In-app Input State Manager. Capture the actual error, file path and Windows build before making changes.
Check where the error occurs
Switch to another installed keyboard and reproduce the same composition in Notepad and the affected app. Capture the crash module and whether it is an app-local or Windows copy.
Repair the affected feature
Update or repair the app if the issue stays isolated. Check Windows input layout and accessibility settings if the same problem occurs in multiple apps.
If Windows reports corruption of a protected system file, use Microsoft’s system file repair procedure. Obtain software and drivers through Windows Update or the applicable publisher.
Verify the repair
Retype the affected phrase using the original input method in both applications.
See the publisher’s guidance, the exact Windows file record, and the related PC Repair Atlas guide.