You can use GetAsyncKeyState(VK_LSHIFT)  / RSHIFT to distinguish between them right here. Dunno if that will work for KeyUp though....