I have hardwood floors in my sewing room and I have tried:
Rubber shelf liner
Velcro
Mousepads
Shortening the cord
'Feet' made by putting lumps of hot glue on the bottom of the pedal
AND I have a back on my sewing table so technically the pedal should hit it and stay there - instead it goes sideways.
GGRRRRRRRRRR