Fix active keys rules : check the key's status before counting them