At the menu screen, press . You should hear a chime to confirm the cheat has has worked.
Action Replay codes
00CCA6FF
Invincibility
00CCA909
Infinite Lives
00D139XX
Level select (replace the XX in the code with a number from 01 to 0C (hexadecimal); enable the code before the game starts, then disable the code after the level begins)