I know next to nothing about electronics, but I suspect you might need to change the driver in the A6 as it would probably interpret the taps as mode changes. If you don’t need brightness control a single mode regulated driver would be cheap and easy to install.
Besides a the driver swap I’d look at modifying a FET based tail switch. Check out the design from BLF member loneoceans:
I think I saw a read-made FET remote switch for sale a while ago - it might have been from BLF member Lexel.