KeysInRange method added