I have to do a game for my class and we are required to take input from the keyboard in order to move things around. Mainly we will be using the arrow keys to shift an object to the left, right, and down.

Does anyone a function that will do this?

I was researching and came across GetAsyncKeyState, would this be a plausible choice and how can I implement it in code?