To activate the cheat codes press the Shift+Alt+A while in the Main Menu. Once the cheat codes have been activated, you can select the cheat you wish to use, while playing a mission, by holding down the keys listed below.

Alt+C - Access to all campaign missions at the selection screen
Alt+K - Free building (no resources required)
Alt+X - Add 100 popularity and 1000 gold