This article explains how to lock a Microsoft Surface Laptop 4.
Red unlock bar Microsoft Surface repair
Press Win+L to lock your Surface Laptop 4 and display the sign-in screen. As long as you have a password, this is the best and fastest way to lock your computer without turning off the screen or closing your open files.
Another shortcut on the Windows keyboard that you can use to lock your Surface Laptop 4 is Ctrl+Alt+Del. The screen will turn blue or black and offer several options. Select Lock to go to the lock screen.
Finally, shutting down your laptop is also an effective way to lock it, as Windows always requires you to log in when your computer boots up. Press the power button on your keyboard, accessible from the top-right corner. This will turn off the display and, depending on how your computer is set up, either shut down your laptop or put it to sleep.