Using 3.5mm input to register a button press (a switch)