its basic winapi so you can do where you want, you only need to use GetAsyncKeyState from user32, you call this function for each key that you want to check if its pressed... it's seems like spam for the system but its very common on windows to have very load and obstrusive ways to do a very simple task