This guide seems helpful for creating key-value pairs in Contentful. For this solution, you have to create a content type that only has two elements: a key and a value. Then, you link them together through relationships. However, it does seem a bit complicated, doesn't it?
Contentful