Regarding latency: If you are not able to get your latency to behave well at the 12ms or less as Brudlefly indicates above, trying to record your keyboard will be unpleasant at best. It will be like playing a pipe organ in a large auditorium - hit the key and hear the sound much later. It's very confusing for most people to try to get good timing like this.
Since you have a keyboard that can produce its own sound, you can avoid this by allowing your latency setting to be higher (pretty much insignificant what the number is this way) in Sonar, turning Local Control ON for the keyboard, turning input echo OFF in Sonar on the tracks for midi and audio. This way, you will be playing the keyboard as normal and hearing the notes as triggered directly from the keyboard without first passing through Sonar, but the midi will be received by Sonar and recorded in the right spot. When you play back (with the midi being sent back out to your keyboard, retriggering all the notes you played), since latency would be the same for all playback tracks, it will work just fine there.
Even though my sound card will allow me to go to a pretty low latency, I prefer to record my VDrums this way: a. because I get instantaneous response from the drums, which in the case of percussive things is REALLY important to me to get the groove right, and b. I can set Sonar's latency to be whatever I want without effect, which allows my system to run better in general, especially when further along in a project and there is a lot going on.
Also, I typically leave my drums as midi all the way until I get to mix-down phase, only then converting each drum from midi to audio to process with Sonar's fx. Up until that point, I use the vdrums sound for monitoring, again keeping the audio processing power around for those things that need it. Once in mix phase, I can bump up the latency anyway and then I have more headroom to process the drums and everything else at once without issue.
All that said, at some point, you will probably want to get away from the SoundBlaster type cards and get something more designed for the task. You can even get a simple two channel card with midi over USB2 these days for pretty cheap if you find that you are getting more serious. It will make a difference in many of the recording phases.
Hope this helps.