Tap or hold JUMP to clear spikes. Land on pads for a bigger jump.
Press UP ARROW / SPACE / the JUMP button once to hop. Hold it down to jump again automatically each time you land. Spikes can always be cleared with a well-timed jump; pads give a bigger jump for taller gaps.