Press the Power button, and then immediately press the Esc key repeatedly to open the Startup Menu.
If the Startup Menu screen does not open, the integrated keyboard hardware is not working. Service or replace the integrated keyboard in the notebook. To continue using the notebook, connect a USB wired keyboard to a USB port, and then restart the computer.
Press F10 to open the BIOS settings.
Press F5 to load the default settings, and then press F10 to accept the changes.
Restart the computer.
In Windows, search for and open Device Manager.
Click View, and then select Show hidden devices.
Click the arrow next to Keyboards, right-click the keyboard name, and then click Uninstall to remove the device from Windows.
Remove all devices in the Keyboards category, and then restart the computer.
You can refer to this HP document for more assistance:- Click here
I hope that helps.
To thank me for my efforts to help you, please mark my post as an accepted solution so that it benefits several others.
Be alert for scammers posting fake support phone numbers and/or email addresses on the community. If you think you have received a fake HP Support message, please report it to us by clicking on "Flag Post".