its called "fencing" reaction or "posturing" - when the part of the brain that controls motor function goes glitchy after blunt force trauma to the brain.
Its like the brain "seizes" and the nervous system reacts.
Its different from wobbly, woozy legs ( 4 days ago ) in that its much more serious- but the underlying cause is the same- blunt force trauma.