Drag the ragdoll head with mouse cursor or finger if you have touch screen. If the ragdoll head is stuck, press space key. If you want a little comedy, keep pressing space key rapidly.
I added a bit of code as well as changing the head @BurntPotatoArts for his head