I understand you have keyboard issues with your laptop.
Don't worry I'll try to help you out.
Did you make any software or hardware changes on your laptop?
Have you tried checking with an external keyboard?
Please provide the product number of your PC to assist you better.
As you mentioned only volume and brightness keys are working on your laptop.
Try the steps recommended below.
Try restoring the BIOS to default.
Turn off the computer and wait five seconds.
Press the Power button to start the computer and repeatedly press the F10 key to enter the BIOS setup menu.
On the BIOS Setup screen, press F9 to select and load the BIOS Setup Default settings.
Press F10 to Save and Exit.
Use the arrow keys to select Yes, then press Enter when asked Exit Saving Changes?
Follow the prompts to restart your computer.
In Device Manager, uninstall and reinstall the keyboard software:
In Windows, search for and open Device Manager.
Click View and select Show Hidden Devices.
Click the arrow next to Keyboards, right-click the keyboard device name, then select Uninstall to remove the device from Windows.
Continue removing device names in the Keyboards category until all device names have been uninstalled.
Restart the notebook. Right-click Start (), select Shut down or sign out, then select Restart.
Wait for the computer to restart and open Windows.
1.) Turn off the computer.
2.) Disconnect all connected devices and cables such as Personal Media Drives, USB drives, printers, and faxes. Remove media from internal drives, and remove any recently added internal hardware. Do not disconnect the monitor, keyboard, mouse, or power cord.
3.) Turn on the computer and repeatedly press the F11 key, about once every second, until Recovery Manager opens.
4.) Under I'd like to identify any problems, click on Run Computer Checkup.
5.) Now select the radial button next to Open a Command Prompt and then click on next.
6.) In the Command Prompt Windows please type and check the functionality of all the keys if not then it's for sure hardware issue. So contact HP Technical Support and get the keyboard replaced/repaired.
7.) If it works fine in Command Prompt then, try creating a different User Account with Administrator privilege and check the functionality of the keyboard.
8.) If nothing works out then please try system recovery(install Win7 OS) to set the NB back to its Factory Original settings.
Refer this article to further troubleshoot keyboard issues with your laptop.
If the solution provided worked for you, please mark accepted solution for this post.
Hope to hear from you soon!
Have a great weekend ahead! 🙂
Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.