clear all indexes

For correct press other key it needs to clear all array, and save only
current key index