Membrane switches for harsh environments