In windows when you press the Windows-L key combination the login window appears to protect your computer in the office while you are getting a cup of water from the kitchen.
To lock a Mac computer
- click your name in the upper right corner and select Login Window…
To blank the screen
- press the Shift–Control–Eject key combination