One way to lock a Windows computer from your keyboard is by pressing Ctrl + Alt + Del and then selecting the "Lock" option.
Take these preemptive steps to protect your data and make your laptop more recoverable in case it's ever lost or stolen.