Works with a plain adapter
Pentax K sits 29.46mm further from the sensor than Nikon Z. You need a 29.46mm adapter, but it can be a plain one — a hollow metal spacer with no glass in it. The lens still reaches infinity focus and nothing is added to the optical path.
Coverage & framing. Both are Full frame, so the lens covers the sensor fully.