Implemented create-def for keys.