keyboard press during time interval works