For this symptom on HP laptops, the most relevant supported fix is to remove the failing keyboard filter driver and let Windows reinstall the standard driver, then disable Fast Startup because shutdown can restore a bad keyboard driver state.
- Open Device Manager.
- Expand Keyboards.
- Right-click HotKey Keyboard Class Filter Driver.
- Select Uninstall device.
- If shown, select Delete the driver software for this device.
- Restart the PC.
After restart, test the external keyboard.
Then disable Fast Startup:
- Open Control Panel → Power Options.
- Select Choose what the power buttons do.
- Select Change settings that are currently unavailable.
- Clear Turn on fast startup.
- Save changes and restart.
If the built-in keyboard uses an OEM hotkey filter driver, that filter can interfere with keyboard behavior after updates. Windows filter drivers are installed through INF-based driver packages, and installation can fail when the package is missing required entries. In that case, use the HP-provided keyboard/hotkey driver package for the EliteBook 840 G6 instead of forcing the generic filter driver entry.
If the external USB keyboard still fails after uninstalling the filter driver and disabling Fast Startup, check Settings → Accessibility → Keyboard and make sure Filter Keys, Sticky Keys, and Toggle Keys are off.