When the push button is open you feed 9 volts to the pic input. Place a diode on each input to stop this current flow.

Cheers

Al.