Do you have the lenses aperture ring set to the "A" position? If you do not, you should try it
You'll be able to use all of the exposure modes that way. If you want to use the aperture ring, you'll need to go to the custom menu, and scroll for "Using aperture ring" and set that to "Permitted" then shoot in Manual mode, set your aperture with the ring, then hit the green button to set your shutter speed. And you can use ANY Pentax K mount lens on your K10D, but the old manual lenses require stop down metering with the green button. ( you can also use 3rd party K mount lenses, but there are a few out there that may cause problems, such as ones designed for Ricoh program type SLRs , there is a pin on those lenses that MAY cause the lens to get stuck on your camera )