How to send long text with line wrap and press the search button at android keypad

i have script below which works to input text at field. i believed it uses

how do I send much longer sentence which include line wrap? like
test 123
line two
last line some chinese characters.

then press the search button at android keypad

import org.openqa.selenium.Keys as Keys
import as KeyEvent
import as AndroidKey
import as MobileDriverFactory
import as AndroidDriver
import com.kms.katalon.core.logging.KeywordLogger as KeywordLogger
import as ImmutableMap

//At Composer, set message body
Mobile.tap(findTestObject(‘nine/Composer/android.widget.EditText-SetMessage’), 0)

AndroidDriver<?> driver = MobileDriverFactory.getDriver()

driver.getKeyboard().sendKeys(‘Test 123’)