key strategy for any amount of keys