a key is a shaped piece of metal that opens a lock