Arrows / WASD, swipe, or tap next to the crab. Crabs walk sideways: you can only go up or down onto or off a rock. Space waits a move, Z undoes, R restarts.