Help, panning switch??

Hi, i have a nice idea for instrument i want to make and i cannot figure it out myself completely.
I need to switch paning in 3 positions with each keypress with whatever key and velocity.
Like first note - center 2nd - 30% right 3rd - 30% left 4th - center again. I want to play that over my track.
Is it possible?
Thanks.

Try a Stepper in the panning modulation section.