If your pin has a schmidt trigger input (check the chip spec), you can try debouncing switches by adding a .01uF-.1uF cap between the pin and ground.

-----------------Picster----------------