I've had some experience dealing with small non-differential signals at long distances. My advice is (other than the esd protections at the mcu already mentioned) use shielded cable, and also use a pull up resistor close to the mcu and another pull up resistor close to the switch. Two 4.7k resistors should do the trick, although you may experiment with 10k too, if you want to keep the drawn current to a minimum. This arrangement prevents capacitance buildup in the cable itself.