You access the game console via a variety of keys depending on your keyboard. For more information, check the Citadel's FAQ.

As for what to type, use
give_trait Mahfouz Warmonger 3