I'm actually using Blender 2.77 while reading Game Development with Blender.
In an example it's being used the string "quit\n" in an expression controller to make the user press the sequence of keys: q u i t ENTER to exit the game ones it's started.
I've tested the logic and everything seems fine, but the escape sequences, indeed as an example if I set the string to be "quit" only as I press the sequence q u i t the game quits.
The book I'm reading is been written for use with Blender 2.66 so things may have changed since then.
What I'm asking is how do I make the BGE interpret "\n" as the in-game RETURN key pressure in my expression?
Link to the file: