How to wire a button for input on an Attiny85 using Arduino code?
Its simply your button setup that is the problem. Tie your button pin to ground with the resistor and tie the button from the button pin to vcc.