A small microswitch with a lever (often used as limit switches on less expensive 3D printers).
I use these in DIY Sim Racin magnetic shifters similar to the ones published by amstudio on YouTube. These were modeled using a photo and a set of calipers; they do come in several different sizes when bought online from shops on eBay and Aliexpress, so measure your own before using this model.