Open Options from the main menu, then select Cheat Codes. That's where you type them in.
Codes are entered exactly as published, capitals included, and confirming applies them immediately. Note that using cheats will usually disable achievements or trophies for that session.