wait for keypress only in windows