Check if user is typing and loop until half a second has passed between keypresses