Hi@tcar2021, Welcome to the HP Support Community! Request you to follow the below troubleshooting steps.
Please follow the below steps:
Step 1: Enabling the Keyboard in Windows
Skip this step if the computer does not enter sleep mode or if the computer wakes unexpectedly.
Follow these steps to enable your keyboard to wake your computer from sleep mode:
In Windows, search for and open the Device Manager.
Click the arrow next to Keyboards and double-click the name of your keyboard.
If the Power Management tab is available, proceed to the next step.
If the Power Management tab is not available, click the Change Settings button if it appears below the Device status box. The same Keyboard Properties window opens with the Power Management tab available.
If you are prompted for an Administrator password or confirmation, type the password or provide confirmation.
Click the Power Management tab and make sure that the box next to Allow this device to wake the computer is checked.
Click OK, and then test to make sure that the keyboard can now wake the computer. If the computer still cannot wake from sleep mode, continue using these steps.
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".