As a trumpet player, I've heard of a story where a young student kept having this one issue with a technique in how the right hand is used to push down on the valves and rigged his trumpet such that there would be pain involved if he kept doing that. His bad right-hand technique was fixed within the week, I heard.
In a less extreme version of this, trumpet teachers often have their students put a penny between the valve button and the fingertip because too many students unnecessarily lift up their fingers which causes the slightest of delays and unnecessary motion when depressing the valve next time.