Karabiner has this. I never could use this. I've tried mapping A to control when held down, but there's always false negatives because I hit control too fast. I've also tried many other keys and different timings, but nothing works for me.
Instead, I map a key to one thing when pressed alone and another when pressed with other keys. Works so much better. I can't live without this now. I really wish QMK had this functionality, but I think it's only available in Karabiner.