Added test for entering return character.

Checks for behavior described in issue #262.