. The getch() function inherits its behaviour from the underlying C curses library, which doesn't support such input.
A fix is to 'mess' with the Unix terminal (assuming you are working on a Unix box). After you initialized the curses environment you have to put the terminal in the CBREAK mode, where all characters are returned immediatly after they are typed. This is done by calling
And then the terminal is ready to process the user input with getch, in unbuffered mode, including the Enter key.