the problem with this is it is borderline automation in that it is taking a decision for you... the press or don't press of the key depending on assessed factors e.g. the known cooldown of an ability.