You can lock Windows from your keyboard by using two different key commands. One way to lock a Windows computer from your keyboard is by pressing Ctrl + Alt + Del and then selecting the "Lock" option.