i want to make a simple program to act like a daemon, running in background on system, just waiting the key "c" be pressed to activate for 5 min. some keys on keyboard (like a, b, d, f...).
After the 5 min. the keys must be locked, but if the "c" is pressed before the time is completed out, must be added 5 min. to the time left (if is lefting 1 min. to lock, pressing the "c" again will be left 6 min to lock the keys)