Typed Response with forced end of routine

Hi, I’m attempting to make a simple pin entry task, where participants see a string of 4 numbers and then have to type said numbers in the order they were shown to progress to the next task. I am having trouble figuring out how to do this. Any help would be greatly appreciated.