Two keys, two audiences.
Press Y to speak to everyone on the server, type your message, then hit Enter to send it. Press U to talk only to your own team — survivors if you are playing as one, or the infected side if you are not — and send the same way.
The distinction matters more in this game than most. Versus mode depends on the infected coordinating an ambush, and broadcasting that plan to all chat hands the survivors the answer. Team chat exists precisely so the two sides can scheme in private.
Voice chat is bound separately and is toggled rather than typed, so if you would rather talk than type, check the audio settings for the push-to-talk key. Default voice is open to the whole server unless you change it.
CSR Classics: how to win every pink slip
How to Be a Freelance Video Games Writer, Part 32895
Dragon Ball Z Extreme Butoden: A Must-Have for Fans of the Series
Eorzean Evening Post: How to Spend Your Gil with Style and Class
SimCity BuildIt: Early-Game Priorities, What the Timers Really Mean, and a Scored Review