Below about ISO 9000, the D700 has better SNR at same ISO. Above 3200 the comparisons aren't really fair (if you post process like I assume everyone does) because Pentax uses in-camera noise reduction.
Dynamic range is about the same until ISO 6000 or so.
At low ISO's the K-5's sensor is better than the D700's but you don't seem interested in that.
The D700's AF is better than the K-5's, and wide aperture primes are much cheaper in Nikon.
I don't know if you're looking for more DOF at wide open apertures. If so an APS-C camera might be good for you. The Pentax has better button placement IMO but if you're happy with the Nikon ergonomically I wouldn't switch, or I would switch to the D7000 if you want APS-C.
DxOMark - Compare cameras side by side