Can't figure how to debounce this

The state of the switches is sampled with the latch pin, yes?
So you can debounce by taking several readings and when they stop changing for some amount of time call them done. Or, note the time when you first see a change, and then 50mS later take another and if they match call that good, if not wait another 25 or 2 or 3 more until they settle.