t0 = GetSecs;
for i = 1:number_of_frames
    % draw the video clip
    % flip the video clip
    [keyIsDown, t_press, keyCode] = KbCheck;
    if keyCode(responsekey) == 1
        t_press = t_press-t0;
    end
end