distilled task code to fire a button event.