ok I have a program that runs in the background(windows) via an endless while loop that is always true, it checks my usb and sees if it needs to backup files if needed. to make it so it didnt hog any cpu i have it sleep for60 seconds,
what i would like to know is how can i make it so that it "listens" ( my mind is stuck on java's keyListener) for a key input like
ctrl + j to tell it to close or call a function. anything like that, that would tell it as soon as keys are hit, almost like key logger but detect not log..
i know how to use GetAsyncKeyState()
but it would only listen every 60seconds for a split second in my current program.
im not asking for you to write the code but maybe something to search on google or msdn
also on side note maybe a better way to make the program run in background without a while loop.. more sophisticated stuff
i know what i want to do but am limited by knowing what to look for or what its called..
any help would be appreciated

