With these Hexagonal Hex Threaded Spacer Support, you can fix between PC board and machine board, the hexagon does not skid easily.
Switches
Hexagonal Thread PCB Standoff Spacer Copper Gold Tone