lock <object | [direction] door> [with [description] key]
The lock command will attempt to lock a door or an object with a specific key. If no key is specified, the keys in your inventory and keyrings will be tried one at a time.