Ok - that makes sense. Try:
#Start of experiment
tStart = False
#Beginning of Routine
if tStart == False: #ensure that timer only starts on first trial
timer = core.Clock() #start timer
tStart = True
#Every Frame
if len(key_resp_2.keys) > 0:
loop1.addData('noticedTime', timer.getTime()) #Add data to csv file
loop1.finished = True
tStart = False #Incase you want to do more than one trial
Best wishes,
Oli