Small hooks on the bottom of its feet catch on walls and ceilings. That is how it can hang from above.
The soles of its feet are covered by countless tiny spikes, enabling it to walk on walls and ceilings.