It is suppose to be automatic. If a character picks up the key from under the chest, they should be able to left click on the chest to open it.