The method on record is involved: complete Classic mode on Normal difficulty as Link. When you reach Master Hand, jump and press Up + A in midair while he has his sword raised, and keep repeating it until his health is down to around 150 HP.
Crazy Hand then appears. Take out both while continuing the same input, and completing the Oni Link challenge afterwards has him take over Link's slot.