What would make your gearshifter move up and down when you go to accelerate?

Front or rear wheel drive same problem. Motor and or transmission mount. As the motor shifts on accelaration it can cause the shifter to move. I assume it is in the floor.