One way to lock a Windows computer from your keyboard is by pressing Ctrl + Alt + Del and then selecting the "Lock" option.
Security is easiest when you are the password: You don’t have to memorize complicated keywords, but simply hold your face up to the camera or your finger on a sensor — and you can access your computer ...