   Key press issue
  Hey guys,Quick question.For detecting keypess's at the moment I'm using:#define KEY_DOWN(vk_code) ((GetAsyncKeyState(vk_code) & 0x8000) ? 1 : 0)#define KEY_UP(vk_code) ((GetAsyncKeyState(vk_code) & 0x8000) ? 0 : 1)And then in my game loop when I want to check if a key is pressed I use something like:if(KEY_DOWN(VK_ESCAPE))PostMessage(hWnd, WM_DESTROY, 0, 0);My question is: Is there a function I can call that will return what key was pressed? I'm making a strategy game and different keys will do different things depending on what is selected, so I want to get what key was pressed and then give it to my object to deal with rather than handling everything in the main loop.Thanks in advance.   
 Cross post. Closed.   