There are mainly two ways.
One is, you can use the onboard sequencer in your keyboard, but depending on the model, you may be limited to number of tracks.
And the second way is, you can use a midi sequencer application - like Cakewalk Sonar or Cubase which runs in your computer. You will...