Windows logo key + L (Windowslogo+L) is the standard Windows shortcut to lock the computer (locks the entire workstation, not just the keyboard). This is a security feature that requires password to regain access. While the question says 'lock keyboard,' the standard answer refers to this workstation lock function.