Code:
Event:
Player 1 types a chat message
Condition:
(Substring((Entered chat string), 1, 1)) Equal to ?
Actiong:
Floating Text- Create floating text with the text (entered chat string) at position of unit.
That simplified, and you'll need to flesh out he actions more, but its mainly the condition that you need.