No need for a second loop here. Something like the following should do the trick.

```
for trial in @trials
  keys.push trial.keys...
```