Apple’s approach to shortcuts is slightly more complex because Macs have historically relied heavily on the mouse cursor. However, recent versions of macOS have streamlined the process.
This is the gold standard for Windows users. lock screen keyboard shortcut
(Note: On some non-standard ChromeOS keyboards or if the "Search" key is mapped to function as a standard "Caps Lock", the shortcut behavior may vary based on your keyboard remapping settings.) Apple’s approach to shortcuts is slightly more complex