Hi Kimet -
I'm Kevin B. Independent advisor and a Windows user like you. I do apologize for the inconvenience that you experiencing right now, let me help you sort things out.
Are you trying to disable your keyboard from turning windows in sleep mode?
If so, please try to follow the steps below.
Press windows key + X
Select Device Manager
Device Manager will pop-up, locate and expand keyboards
Right click on the keyboard drive installed on your computer
Select Properties and click on Power Management Tab
Uncheck the box beside "Allow this device to wake the computer"
Click OK and close the device manager
Restart the computer for the changes to take effect and check if the same issue occurs
Hope this will help and have a bless day!
Thanks.
Kevin B.
Independent advisor