You can set your chat key in the game's options menu, but the default is the Y key.
Press Y to open text chat and start typing. If you'd rather use a different key, just rebind it in the controls settings.