There aren't any true cheat codes, but there's a well-known trick: click the weapon you want, then quit the game.