Hello im trting to make some code that like checks if a key is down if it is do something like

if (GetKeyState(VK_CONTROL)<0)
{
.......
}
and ideas i have tryed loops but they go not responding :/