One way to lock a Windows computer from your keyboard is by pressing Ctrl + Alt + Del and then selecting the "Lock" option.
Click the Start button and select Settings from the menu that appears. Click the Accessibility option on the left side of the Settings window. Then scroll down and click the Mouse option under the ...