enfore minimum down state time
fix state event handling
Merge pull request #2531 from kived/buttonbehavior-minimum-state-time

enfore minimum down state time