Reproduction steps:
1. Open the attached "BugRepro" project
2. Open the "Assets/Scenes/SampleScene.unity" scene
3. Enter the Play Mode
4. Enter text with new lines in the text field
5. Observe that you can input new lines
6. Build the project
7. In Player, try entering text with new lines
Expected results: New lines can be entered in Player, just as in the Editor Play Mode
Actual results: New lines are not created in Player
Reproduced with: 1.4.4 (2021.3.44f1), 1.7.0 (2021.3.44f1, 2022.3.47f1, 6000.0.20f1), 1.11.0 (2021.3.44f1, 2022.3.47f1, 6000.0.20f1)
Reproduced on: Ubuntu 22.04
Not reproduced on: Windows 10
Note: This is only reproduced when "Active Input Handling" is set to "Input System Package (New)" in Player settings