MacBook Air - M1, Big Sur
Description
MacBook goes to sleep and won't wake up when the keyboard is pressed. If you press the caps lock key, the green light toggles on and off but the screen won't come on. Possibly a software bug.
Solution
Press the esc key twice and the screen will come on.