Similar to headbanging, footbanging is when you shake your foot in a repeating motion in sync with music or just out of boredom. It can be a subconscious or conscious movement.
one warning: footbanging can also be misheard as masturbating.