hi,
i need to write a "c" program that

when i press a key on keyboard of PC, it should reply in the output

saying that "key is pressed"

and if the key is hold for more than 350ms it should reply that

"the key is hold"


can u help me by giving some tips for this program