3D printer mechanical switch