CD4021 and LED Toggle Switch

I am trying to wire a CD4021 shift register with a microcontroller and LED Toggle Switch. Everything in the code and wiring seems to work except that my switch is backwards from what I want. When the LED is on the Arduino thinks the switch is off and when the LED is off the Arduino says the switch is on. Is there something I can do in the wiring to switch this or should this be done in the code somehow? I will attach my wiring diagram.

CD4021 and LED Toggle.png
Always, always in the code.

Except that in this particular circuit, you just exchange the 5 V and ground connections, or - believe it or not - turn the switch around!

The resistor should go from the input pin to 5 V, not ground. You do not then need the connection from the switch to 5 V.