This is what happens when you don't have a good quality audio driver. Just quantize the tracks.
The midi driver is always MME. Some keyboards come with a USB midi driver, like Roland and Yamaha. Those perform better than generic midi drivers. So see if your Roland has a driver.
But if the Audio driver gives Sonar the wrong calculations, your timing offset will be wrong, this is normally late but can also be early. It's playing back your audio a little too soon.
ASIO drivers are he only drivers that seem to get the timing bang on. So if your sound card has ASIO use it.
You only other option is to use Asio4all. But a proper USB audio interface is the best solution.