Rename index to key
Merge pull request #287 from VitSalis/next_prev_buttons

Rename index to key