Depends...if it's a simple modulation (basically, the same groove/feel, etc), you
can play the same 'pattern' just a step higher(from your Cmaj up a whole step to Dmaj example).
So if you were playing something like-
...
lCC AG CC AGlCA GA CC GAlDD BA DD BAlDB AB DD BAl etc.
Same 'pattern' played a step higher.
Doing something a little different at the Key change(1/8th notes become 1/4 notes with different movement-
...
lCC AG CC AGlCA GA CC GAlD_F#-G_A_lD_F#_G_A_l etc.
There are many options...use your ears.
