That would only work with either off-time memory, i.e. some hardware modding to the driver to distinguish short taps from long power-off periods,
or “next-mode-memory”, which means that if you run the light in some mode, switch it off and later on, it will come on in the next mode instead of the same mode, that’s not really how “memory” is supposed to work and most people dislike it: Explain to me please (the use of): next mode memory