From what you describe I understand that the problem is noticed when using the headphones as well as when using the speakers. The only thing that I can think of that is mechanical and common to both is an expression pedal or it's circuitry. If you have an expression pedal, I would start with that. If you don't there may be an intermittent problem with the expression pedal jack at the back of the keyboard.