Depends on what surface I'm sewing on.
My machine lives most of the time at home with carpet. I took a piece of sticky-backed velcro, the side with the hooks, and put it on the bottom of my foot. It works great on the carpet.
When I take my machine to workshops or retreats and the flooring surface is something other than carpet, I have a chunk of Steady Betty (2 sided) that works great. It sticks to both the floor and the bottom of the pedal.