Android Question Set New Line Character in the IME Filter?

Meigionel TS

Licensed User
I am currently using IME in a project where I have used IME to set custom filters in a multi-line edittext. However I cannot understand how to set/allow the new line character in the custom filter? Such that when the soft keyboard press new line button, IME does not block it?