This is a 5 position key switch for use in a simulated cockpit.
It uses a rotary potentiometer for position sensing that can be connected to the analog input of a microcontroller board such as an Arduino. It is designed to accept a wide variety of keys and does not have an internal locking mechanism.
You will need to print one of each part, except for the spaces, which you will need to print two of. You will also need some m3 screws, a spring, a pair of m4 x 30 screws and some m4 nuts in order to build this.
The fitment of the cam assembly in the housing is very tight and will require some sanding and possibly some lubrication for smooth operation.