Here again, something like the following should do the trick.

```
@buttons = new Button("button" + i, keys[i]) for i in @keys
```