Attempt to lock a door, or a container in either your inventory, or the room's inventory. You must have the correct key of course.
lock 2.chest