The cheats option is inside the options menu, under the small triangle icon. Open that submenu and the code entry field is there.
Codes are case-sensitive in most versions of the game, so type them exactly as listed in whatever source you are using rather than from memory.