What do you mean? a hotkey? if so you could use something like Code: if(GetAsyncKeyState(VK_F1))
if(GetAsyncKeyState(VK_F1))