Registering Laptop Keystrokes

Maybe it’s time to articulate EXACTLY what you’re trying to achieve.

No program expects RETURN if it programmed to sniff the port…. it just sees characters (RETURN) is just another character.

We don’t know what you’re trying to do, so the answers and observations already provided will do what you want, but maybe you want something else.