Snad by měl fungovat GetAsyncKeyState....