Typing modifiers along with a remapped key in a layer not working as expected

I am not 100% what your problem is. But when you can really pinpoint where it goes “wrong” I am pretty sure that a good solution can be found. I got some great tips in the thread Change wait time for secondary key/ role? which might give you also a good starting point to define the two functions of a key, so that it works for your use case.