Gravity and moveing

how do i make it so when the player presses up he changes shape and goes up
then comes back down and stops on the floor

  • how do i make it so when i press left he moves left but the legs also move?
    (the same with going right)

thx in advance,
yhack