Switching one ability on disables another

I think I misunderstood what you actually wanted. This script prevents using T when N is being held down and the other way round. Right until said key is released.

I believe what you want is to tap T and be unable to press N unless you press T again (which would disable one of the modes first). Am I close?