I keep track of key presses using an bool array, just set the wParam index in the array to true on key down and false on key up..