https://aticleworld.com/push-button-interfacing-with-pic-microcontroller/
Push button interfacing with PIC microcontroller