It fails after sleep/wake. If you activate it again in the BIOS, does it fail also after shutdown/reboot and after hibernate/reboot? If those work, don't use sleep.
Does an external keyboard still work after sleep/wake?
Does a replacement internal keyboard still work after sleep/wake?
After putting my laptop to sleep 2 days ago, I opened it and the keyboard didn't work at all.
I tried:
- restarts
- system recovery to get before the last Windows update + again the previous
- to find drivers for the keybord, but there are none (only mouse, camera...)
According to this link, the keyboard was dead:
https://support.hp.com/hk-en/document/c03843122
Luckily, this link gave me some hope:
https://www.laptopmag.com/articles/access-bios-windows-10
I chose "Factory Settings" in BIOS and the keyboard started to work.
BUT
BUT
BUT
When I put the laptop to sleep, after waking - THE SAME PROBLEM!
So again Factory setting...
WHAT SHOULD I DO?
Can anyone help, please?
Thank you!

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic