|lock (<door> | <container>) [with <key>]|
unlock (<door> | <container>) [with <key>]
|Oftentimes one will encounter doors or containers which one prefers to be locked or unlocked. If one has the proper key, it is possible to change the state of the door or container, thus keeping it from opening or not.|
Most doors can be locked and unlocked from inside. If you look at the door, you'll see whether you can lock and unlock it without a key on the side you are on. If you can, you need not supply the [with <key>] part of the arguments.
|unlock wooden.chest with bronze.key|
lock gate with key