KeyboardDiagnostic.dll Error in Windows 10: The keyboard troubleshooter closes or fails to load

If the Windows 10 Keyboard troubleshooter stops and its error names KeyboardDiagnostic.dll, first check whether the keyboard can still type outside the troubleshooter. Open Notepad and type a few letters, numbers and spaces. If typing works and only the diagnostic window fails, use the checks below to isolate the reporting tool. If typing also fails, check your keyboard or its settings directly.
Quick answer
Try the on-screen keyboard in the same app, then test the physical keyboard in a second app. A working on-screen keyboard gives you a way to keep using the PC while you check a USB connection or typing setting. Repair Windows system files when current evidence points to a repeat Windows component failure.
Verified file details
Microsoft’s Windows 10 1607 servicing update KB5131291 includes KeyboardDiagnostic.dll 10.0.14393.4046 in its exact file list. The indexed x64 assembly places it under Windows\diagnostics\system\Keyboard. That path identifies the legacy diagnostic package in the inspected Windows 10 release. Microsoft separately documents the retirement of the legacy Keyboard troubleshooter in Windows 11. An absent troubleshooter on a newer system has a different meaning from a current Windows 10 error that names the DLL.
1. Separate the keyboard problem from the diagnostic problem
- Select Start > Settings > Ease of Access > Keyboard in Windows 10. Turn on Use the On-Screen Keyboard. If you can type a short command,
oskin the Run dialog opens the same tool. Use the pointer to select keys in Notepad. This test can be performed with a working mouse or touch screen. - Open a second simple text field and test the physical keyboard there. Compare a letter, a numeral, and Backspace. If one application alone ignores keys, reopen it and check its keyboard shortcuts, input fields or application settings. If text appears in both apps, the physical device is responding in this test.
- Write down the time if the Windows diagnostic itself closes. Look in Event Viewer > Windows Logs > Application for a matching entry and copy its application, module and path. The Application Error field guide helps you find the relevant fields if a crash was recorded.
Example. The keyboard and on-screen keys both type in Notepad but the built-in Keyboard troubleshooter closes. Preserve the diagnostic error and leave your working device configuration in place. If you need a supported repair, follow the Windows component branch below.
2. Test the connection and typing settings
- For a wired keyboard, unplug it briefly and reconnect it directly to another USB port. Bypass an unpowered hub for the test. For a wireless keyboard, check its battery and use its vendor’s supported connection steps. Microsoft’s keyboard hardware checks explain the basic connection tests.
- If keys type slowly or short taps are ignored, return to Settings > Ease of Access > Keyboard and check whether Filter Keys is on. It can change how Windows handles brief or repeated keystrokes. Record the setting before changing anything. If you intentionally rely on it, keep it enabled and ask support to compare the existing accessibility configuration.
- If keys work but print the wrong symbols, use the language indicator on the taskbar to confirm the expected keyboard layout, if the device has several layouts. Retest with a few non-sensitive characters. A layout issue can affect selected symbols while ordinary letter input still works.
Example. The on-screen keyboard works and the wired keyboard stops only when attached to a hub. Connect it directly and repeat the same text test. If the keys now work, keep the working connection while you check the hub separately. A historical Windows diagnostic error can be investigated independently.
3. Repair a repeat Windows diagnostic failure
- If the current Windows 10 crash names the Windows diagnostics path, check Settings > Update & Security > Windows Update for the latest update your edition receives. Save your work, restart, and repeat the same diagnostic only if it is available on your edition.
- If multiple built-in Windows utilities fail and their current events identify Windows files, ask an administrator to follow the DISM and SFC sequence. Record the repair output and avoid copying diagnostic files between releases.
Finish by typing the same characters in the application where you originally noticed trouble. If typing works, check whether the diagnostic can run separately or whether your Windows release uses a different support path. If you still need help, give support the Windows build, the device model, and the results of the direct connection, on-screen keyboard and tool tests.
Check whether the behavior starts at sign-in
- Save your work and sign out only if you have a working way to sign back in. At the sign-in screen, use the accessibility button to open the on-screen keyboard if needed. Check whether the physical keyboard can move focus with Tab before typing any private information. Then sign in normally and compare the same test in Notepad.
- If the physical keys respond at sign-in but start lagging in one profile, have the profile owner compare its accessibility and language settings first. If an external board works at sign-in while the built-in one remains unresponsive, share the laptop model and both results with the hardware support team.
An intermittent problem needs the same retest after sleep if that is when it usually starts. Save a short timeline with the connection type, the keyboard that stopped, and whether the legacy troubleshooter had a separate error. This gives support enough detail to reproduce the right failure.