make solution for non-sequential shortkeys by adding a second index