Button is giving me the same voltage when pressed or released
Buttons rarely make reliably sound electrical contact with breadboards.
Based on comments, that appears to have been your issue, along with possible quality issues in the button itself.
Sometimes there are thing you can go to make something work well enough for a quick test, eg, I had some buttons where twisting each of the pins 90 degrees would make them better fit the breadboard contacts and so work a useful fraction of the time.  But really, breadboards are not for reliability, especially not with anything that is not a DIP IC or wire lead component of suitable wire gauge.
You would be better off soldering your button to a circuit board (perhaps a pre-made prototype board), or buying some pre-made assembly of buttons, and wiring that into your MCU board directly.