The keyboard & mousepad on my HP laptop have stopped working. If I plug in external devices they work fine, & if I use the diagnostics function the devices test fine (& I can use the built-in keyboard to access the Diagnostics function). Its only when I get to Windows 10 that they stop working. Previously I managed to boot into Safe Mode, uninstalled the devices through the Device Manager, shut down & then they came right with the newly installed drivers, but if I did a restart they'd go back to not working again. I've looked at other laptops of the same model & they all have HID devices listed under Device Manager even when no external devices are plugged in, so any ideas why are these things causing me so much trouble on this laptop?
I would do an in-place Windows 10 Repair Install and Keep Everything. This will update drivers on the way by and should correct the issue
https://www.microsoft.com/en-us/software-download/windows10
Windows 10 is running, so click on the Download button (not Upgrade Button, select Save.
Create a USB Windows Installation key and then run Setup on the USB Key.
This will launch the Repair and proceed normally.