Discovered how to support enter/esc.
Fiddling with getch and wgetch.
Functional support for ESC/Enter now included