[Doctor Volt] has a new video showing just that with the innards of a Logitech peripheral. The mouse contains a microcontroller and the camera part, which fortunately has an SPI interface.
The Keychron M3 is a regular optical ... the Keychron mouse software. The action of the buttons is light and not too loud, although not as quiet as the latest silent mice from Logitech.