You cannot enter cheat codes directly. You need an Action Replay DS cartridge, select the game, and enter the codes there.