Dear,
Are you using C++ or Python?
For C++, you can use the Boost library to get an input. I never used it but already saw some doing it.
For Python, if you want a beautiful interface, use urwid, or curses libraries. But the fastest way it to do it like here
With getch a minimal library for keyboard input.