Can't Type In Text

Generally, every time I try to enter text in this game, not only does the game freeze, but Steam freezes as well. This has made it impossible for me to enter shift codes. Anyone have a solution?