The definition of a key is a metal instrument used for opening and closing a lock or operating a mechanical device. An example of key is what people use to open their car doors and start the engine.