Function useEmbedKeyResolution