I have found from bitter experience that the "classic" S-R latch debounce circuit cannot be guaranteed to work with all switch types. Some switch types can actually bounce back and forth for a few milliseconds, so that you get pulses from both contacts alternately. This makes the R-S latch useless, as all you get is a stream of fast pulses from both outputs until the switch finally settles down. (.....and before anyone suggests it, having to add capacitors to the R-S latch to get rid of spikes defeats the object!)