Combining mouse and escape in 1 key

Why don’t you do a ifDoubletap final toggleLayer mouse? It would be the last action you want to be executed on the second tap of a double tap, wouldn’t it?

For the ifPlaytime you need to wait first, because otherwise the 450 ms will never be reached as the macro runs through.

See this older post of mine for an example on how to detect multiple and long presses on a key: How many single key modifier/combination possible? - #6 by maexxx