Ending trial when key pressed down for 2+ seconds

I think you should be able to compare kb.clock.getTime() to thisKey.rt to get this? see related post here Measuring key lift time relative to stimulus onset

Hope this helps,
Becca