This looks interesting, although I am not sure if it worth the hassle. (I will wonder what these extra layers do, when I look at my configuration after 6 months.)
But I will try it, perhaps it useful for something else.
Regarding your comment, my idea was to convert a KEYID to a scancode symbol.
In (probably incomplete) pseudo code:
scancode = null
if #keyid between 65 and 70:
scancode = #keyid - 64
else if #keyid between 0 and 5:
scancode = #keyid + 7
ifPlaytime 199 final tapKey ("f" + scancode)
tapKey scancode
I have only skipped over your other thread, but imho KEYID and scancode symbols get easily confused by people which do not exactly know the in and outs of a keyboard. (aka new customers, and also people like me which write their macros and then forget about them, because they are working.)