Ideal circuit for opto-isolated push button input
It would probably be better to put the capacitor after the resistor, making a low pass filter with a 1msec time constant which should be enough for most all switches.
You may not need the inverter depending on your logic of the MCU input (depending on if reset is asserted high or if reset is asserted low).



simulate this circuit &ndash; Schematic created using CircuitLab