How to get the value from this cycle for a specific key? For example, the key value will be equal to "key1"
for (Map.Entry