Riley, take a small-medium, fine blade straight bladed screwdriver. If you look at the new switch you'll see 'hinged' plastic tabs top & bottom. The old switch is the same way. Obvious, but disconnect the power. Gently pry between the switch body & case till you can get a fingertip grip on the sides of the switch body, then push down on the top tab as you pull on the switch body, as it compresses you'll be able to pull it out a little further, do the same on the bottom tab. It will come out to the point you can depress both tabs with your fingers and remove the switch. Swap the wires from old to new, then simply reverse the process, no need for the screwdriver at that point, simply push the new switch in until it clicks into place. Voila !

Have done it on a couple of my units over the years. Enjoy the new glow.