The switch itself actually works. The problem is that the little hinges seen in the first and second picture broke.
They were what held the switch inside the machine and the button on the outside in place. You could glue the switch into position, but the button would still fall off.