Getting all keys from all rows