While there aren't many cheats out for Transformers 2: Revenge of the Fallen, here are the ones that you'll want to know by heart:
Infinite Ammunition: For an infinite amount of ammo for your character, simply hit UDLRUUD and you won't have to worry about reloading.
Invincibility: Want to become invincible so you aren't worried about your health while you're playing, simply hit LLULRDR and there you go.
Pesky Police and Tanks: Want to get rid of those pesky police and tanks that get in your way? Easy, simply hit RLRLRLR and they are gone for good.
Cybertron Levels (Autobot and Decepticon): Want to unlock the two levels of Cybertron quickly? Simply hit RUUDRLL and you are in.
Old School Optimus Prime: Want the 1st generation skin for Optimus Prime? Hit DDUURRR and you're back in the old school Transformers days.
Old School Jazz: How about the 1st generation skin for Jazz? Hit LUDDLUR and once again, old school Transformers.
Old School Starscream: Hit RDLLDUU and you'll look like Starscream did in the old cartoons.
Unlock all missions: To unlock all of the missions from the very start of the game without going through everything, get to the menu with these options: "Campaign", "Bonus", & "Options". Then, hit down, up, left, right, right, right, up, and down and all of the missions in the game will be unlocked.
Killing the Cement Truck: This is one of the hardest Decepticons in the game to beat, and if you are fighting him as Ironhide, then you can easily defeat him by doing this: transform into your car mode, run him over, then transform again, pick him up and throw him and he'll die.