Per microsoft specifications ( https://msdn.microsoft.com/fr-fr/library/windows/desktop/dd375731(v=vs.85).aspx ) 0x40 0x0A – 0x0B 0x07 0x5E 0x88 – 0x8F are NOT valid
they are probably generated by a device’s single event sending 2 Keycodes at once , which explains why the interval is zero
I will remove them from log.
for the rest a macro doesnt press 2 keys at once , a human does that. Zero interval events are not macro. It may look like to be a paradox but too fast is human , too slow is human , irregular is human. Fast and regular is a macro , check in my first samples a double clic by macro vs a stressed human double clic.
for now I didnt filter (only at 140ms+) , I’m gathering information to see where I put the cursor