Press Start, hold L, then enter A, X, B, B, Y.
Input it during play rather than in a menu, and give the buttons a steady rhythm — dropped inputs are the usual reason a code appears not to work.