On Windows 10 and 11, the Windows + L shortcut is universal. However, there are alternative keyboard-driven methods if your Windows key is disabled or broken:
If your physical keyboard isn't working and you need to type a password/pin: screen lock keyboard
Command + Control + Q: The fastest way to lock the screen on modern macOS versions. On Windows 10 and 11, the Windows + L shortcut is universal
You can also use hardware like presence sensors to automatically lock your workstation when you walk away. 2. How to Lock Only Your Keyboard (Input Lock) On Windows 10 and 11