No wonder I like Sonar, I don't have these things happen to me...the closest I've come is where a MIDI instrument didn't play back when I started playback, but then if I just put the now time before where the part started, then it would play back. I sure a lot of times it was retaining a controller 7 = 0 but I'm also sure some times it was not. But this is very rare in my setup.
What happens if instead of using the space bar you click play on the transport? Do you have to click on it multiple times? If not, then it seems the problem would like between the communication with the QWERTY keyboard and Sonar. What happens if you connect the keyboard to PS/2 instead of USB? Is the keyboard wireless? Etc.
If you have to hit the transport playback button multiple times, then that's something else altogether but it would be useful to isolate the conditions under which this happens with more detail.
However, the "out of sync/some tracks play some don't" issue implies it's more than just about starting and stopping playback. I have a feeling the sync issue is where to look for problems and fixing that will solve the space bar problem, rather than the other way around.
Try increasing the latency and see what happens...long shot, but I think it's time to collect data on what doesn't solve the problem to get a better idea of what might. Bear in mind that if I haven't experienced a problem, then I'm pretty much reduced to guessing at what it might be.