Change action button to middle click

Also, don't write bogus events into event file.