Ghost crabs are swift runners, darting away at the slightest sign of danger. They either head back to their burrows or plunge into the sea to escape intruders. The gaits of ghost crabs alter as their speed increases. Observations on "O. ceratophthalma" show it can walk indefinitely using all four pairs of walking legs, occasionally alternating which side leads. At higher speeds, the fourth pair of legs is raised off the ground, and at the highest speeds, the crab runs, using only the first and second pairs of walking legs.