For example, that when you press "Esc", the application ends.
Qt doesn't handle console events, it can just read \n-terminated lines from the console.
\n
You need to use native APIs or other libraries (curses).