Can i change 5 pins tact switch to 4 pins tact switch?
Often a 5-pin tactile switch can be replaced with a similar 4-pin (or fewer pin) tactile switch.  

If you look at the PCB where the switch is mounted you may be able to determine which of the pins are important (input to output).  Often one or more PCB pins will contact the metal frame of the switch, this pin is not normally important except for some small bit of shielding or rigidity it might provide.  Also common is multiple contacts connected to the same side of the switch. 

Looking at the PCB you might see that two pins on each side of the switch are shorted together, then two pins on the other side are also shorted together, (sometimes the extra pins will just go no where at all).  The replacement switch just needs to make contact from one side to the other (input to output). You might even be able to use a switch with only two pins as a replacement, (if you can verify the PCB connections).  Just be sure that the contact point is at the same location as the original.







simulate this circuit &ndash; Schematic created using CircuitLab