When playing the game, hit CTRL + SHIFT then enter one of the following codes: 

Code - Result
~~~~~~~~~~~~~~~~~~~~~
winit - Win game 
goape - Mad pirate 
goforit - Prisoner attempts escape 
spaininv - Spanish invasion 
booty - 2000 gold 
timber - 100 lumber 
britinv - British invasion 
frenchinv - French invasion 
loseit - Lose game 
freebuild - Disable normal building rules 
normbuild - Enable normal building rules