Some folks say use a mouse pad. Others say that some of the dish mesh they put in cabinets works nicely. Some use rug unders that keep rugs from traveling.
I didn't have anything like that when I got mad one evening, so cut down a small box so the foot pedal would fit in it, along with my big foot. The box was small so I glued it onto a piece of wood that stopped against the wall, now I always know where the pedal is and it doesn't travel. Some day I'll make this in wood but right now it works nicely. My Brother is now under control.
For whatever reason, my older Singer's pedal doesn't travel.