If there is exactly one action on a button, it transmits as long as you press it. If there is more than one action, each code transmits for a fixed amount of time, which might not be enough in your case. Changing the duration would change the fixed amount of time that it transmits.