@ivory seems waiting one second after the window started to press enter was a good technique