Steps configurable, improved loop to process KEYS