Part Identification of switch for rotary motion

I am wondering if you would be able to identify a potential replacement switch for me. Below is a picture of the switch needing replaced next to a properly functioning switch. I can not see any part identification info on the switch as it sits.

Welcome to the community! Please look through the detector switches here https://www.digikey.com/short/pt01dqvv. One option might be the switch below. Please look over the datasheet and see if the dimensions match.

image

CKN10547TR-ND