This test selects some characters, then simulates a press of the Enter key (marked Return on Macintosh keyboards).
Content of input after pressing return is "". It should be "12345678".