title: to have KeyDown event in C or C++ (mac OSX)
body: <p>I know that it is possible to have KeyDown event in Objective-c but I don't know about that language but I would like to control my program with keyboard,which is in C and C++.
  I found some examples but all of them are for windows or java...
  I search xcode it seems that everything is about Objective-c and cocoa that I don't know about them, I just looking for simple example ...</p>
  
  <p>Thanks in advance</p>