I am making a timer program. I know this is probably easy, but its been a long time since I did any C++.
The question: Is there any way to make a while loop that runs until a key is pressed, and if so, how?

The program:
Code:
#include <windows.h>
#include <iostream>
#include <conio.h>

int h, m, s=0;

using namespace std;

void DoStuff();

int main(){
int h, m, s=0;
cout<<"Press any Key to start and end the timer.";

while(/*Put KeyPress Code here*/){
cout<<h<<m<<s;
Sleep(100);
DoStuff();
}
}

DoStuff(){
s++;
if(s=60){
m++;
if(m=60){
h++;
if(h=2){
MessageBox(NULL, "You're waiting too long!", "Forgeting something?",MB_OK);
return 0;}
}
}