If you want to open chat frame when pressing enter instead of adding a new line, then add this script to your EditBox frame.