title: How to determine keyboard key is pressed in C++ on Linux
body: <p>I think it should be simple question but I google long time and find all solution is in windows, so I give my solution in linux c++ hope next time I forget this question, I can find the answer</p>