How to save state from a analogRead switch?

sp. "input"

Yeah, yeah. Stupid fingers...