Getting negative reaction times on windows

I am getting negative RTs and can’t figure out an alternative to getKeys() to work around it.

Can you check out my colleague’s post? Mismatch reaction times Mac and Windows ? (Negative RT)