One way to lock a Windows computer from your keyboard is by pressing Ctrl + Alt + Del and then selecting the "Lock" option.
Microsoft pushed a new Release Preview build for Windows Insiders. One of its hidden features is the new Lock Screen widgets, which were spotted earlier in one of the recent Windows 10 updates.