Hi, I hope I could help you with an example.
Key as llave it´s the tool with you open a door.
Key as clave it's a keyword, like when you go to a speakeasy and someone ask you the password, also as clave means something essential i.e. Aquella canción fue la clave para enamorarla. That song was the key to make her fall in love with me.