It looks like a music box. And it looks like a wind-up key he’s got inserted in the device. My guess is that he was some kind of repairman or machinist.
Door handle/lock mechanism maybe?