My grandma had one of these ‘toys’ at her house when I was a kid. They’re called ‘gee-haw whammy diddle’.
Remember when McDonald’s Happy Meal toys were legit? The battery STILL works in my Inspector Gadget multi-piece toy 20 years later.