What does the `index(key)` do?