Complexity in getKey