Button handler checks at 1 ms intervals.