Chat in Free Realms has been a bit on-and-off lately, so it may not always be available.
When it's working (and you meet the age requirement), just press Enter to open the chat window, type your message, and hit Enter again to talk to players within about 20 feet of you.
You can whisper someone using the /whisper (name) command or by selecting them from your Friends list. When you're in a group, you'll have access to group chat as well.
Click the purple chat bubble to switch between channels, or use the pre-made lines—which are the only option for younger players.