I have these to add a rotary encoder + switch to a slot on a mechanical keyboard (specifically the Drop/OLKB Planck keyboard). They work great programming my board with QMK. Just make sure the encoder is set up correctly in QMK (mine initially moved twice as far as it should rotate for a click). The good thing about them is that they're relatively short, so they don't stick out too far above the rest of the keycaps. I ended up 3D printing a pen for myself, but it's a standard size so finding the right pen should be easy.
🌀 NuTone 5901A000 Blower Wheel Assembly: Superior Efficiency and Performance
9 Review
TWTADE/AC 24V 10A Coil Electromagnetic Power Relay 8 Pins 2DPT 2NO+2NC With Indicator Light And Socket Base -YJ2N-LY
9 Review
Adjustable AC Current Sensing Switch: SZC23 No AL-CH Model, 0.2A-30A Range
14 Review
MIDI keyboard Axelvox KEY49j white
22 Review