you could add a NUM_KEYLOCK_ENGINES to the end of the enum and make this a for loop up to that? not really necessary