Inside the base of the switch is a small propeller shaped item that has a contact on each blade.
If your key is turning in a circle, the oblong drive hole in the centre of this has become rounded with wear and tear, plus undue force, and the drive from the key no longer turns the 'propeller' into an on and off position.
I have several switches with the same problem and no source of remade items to repair them. If you are skilled you may be able to make one but it has defeated me in the past.