You change the way Enter works when you write a message in Teams.
Select Settings | Chats and channels | When writing a message, press Enter to and then make your selection!
Personally, I don’t want Enter to send the message I want it to create a new line. You?