Not sure if you already figured this out, but this link should help: Measuring key lift time relative to stimulus onset