Call onActivate or onDeactivate for an action when it becomes enabled.