Disconnect the cable from the derailleur and pull it out of the housing. Then with one hand pull the exposed cable tight and shift with the other hand all the way up and down. If it does click and shift then you know it's probably not the shifter. Could be worn cable/housing.