This is one of the many debouncer or anti-ring settings that the reader can find on this site. In this case, a 4093 can be used as an inverter and the component values can be changed according to the application. This circuit can be used as an input shield for microcontrollers.