While in the game, simply pause and type in the code. If you entered it correctly, you will hear a confirmation sound.
If it still does not work, double-check that you have the right code. A site like cheatcodecentral.com can help you track down accurate ones.