No need for a CMC, just a resistor or ferrite bead will do. Put that in series, towards the switch. Then put a filter cap on the inside, say 1nF or more. Add clamp diodes or zener/TVS for ESD protection. Finally, one more series resistor, say 100 ohms, to the logic pin. Optionally, add a schmitt trigger inverter/buffer between switch and MCU, to ensure it doesn't see any indeterminate signal levels (this is probably not necessary, check MCU datasheet to see if it has schmitt trigger inputs on port pins already).
The RC or LC filtering, dampens resonances on the cable and filters noise away from the circuit. This is necessary both to get a stable signal, and to prevent rectification by diodes (which, given enough RF noise, will cause an indeterminate voltage level). The diodes are added to absorb large bursts of noise, such as ESD. The outer resistor basically doesn't count, for ESD purposes -- a direct hit will put 5kV+ on the wire, jumping the resistor effortlessly -- this will be clamped by the protection device to maybe 10s of volts, which is still a lot for the MCU pin (and there's lots of amperes behind it as well), so a series resistor finishes things up nicely.
Tim