i'm coding a program that will need to keep track of when the user presses and releases a key on the keyboard. What methods could i use to keep track of these actions, is there some flag or other way to tell when the user releases a key. I plan on using ctime to keep track of the exact times but need something to alert me of the events.
thanks