improve multibutton logic

Do not wait when the maximum number of button
presses occurred, set the corresponding output immediately instead.