A step button has pinged out-help!

looks like its housing has come away from the pcb although part of it, the ball and soldered part is still connected.

any know if this is now broken and needs a new switch or is fixable


any help sorely appreciated

i have to add i wasnt hammering it or anything silly