Keyboard Shortcuts to Shut Down or Sleep Windows
TL;DR: You can put your Windows 10 or 11 device to sleep in seconds using one of three keyboard shortcuts: Win + X → U → S, Alt + F4, or a custom shortcut built with a simple command. No need to touch the power button.
Source: geeksonsite.com