Jethro's right - the first thing is to make sure the pedals are moving when you shift. The next thing is not to be putting a lot of torque on them while you do it.
Of course, if you're already doing those things, then your derailleur(s) may be in need of adjusting.