Use tabstop's idea, and <ENTER> will probably compare equal with either '\n' or '\r'.