Implement get_keys for dicts