Switch not working as expected
If your switch is similar to the one in the picture below, it's likely that you just picked the wrong pins. Try to rotate it 90 degrees, or use diagonally opposite pins.



https://www.sparkfun.com/datasheets/Components/General/00097.jpg