Does the keyboard have a sleep function?

I am having a weird issue with my keyboard. I don’t know what it is, it seems like the keyboard has some weird sleep function. The only way to wake it up is by hitting the windows key and typing randomly.

What is going on? Kinda worries me, at some point if my keyboard will straight up stop functioning.