Hacking pushbuttons

Use an optocoupler or reed relay may be?