Ultimately
all Pentax DSLRs will work with all older K-mount lenses; that's the joy of Pentax.
Caveats:
1) Manual focus lenses marked PK-A/R or some variant thereof (the R is what's important), and all OEM Ricoh-branded P-series lenses (but not the XR series) have the
Ricoh Pin, an essential part of (film-era) Ricoh's auto aperture control system, but the pin coincidentally (and unfortunately) lies in exactly the same place on the mount face where the screw drive shaft protrudes. OEM Ricoh and some high-quality 3rd-party lenses have a rounded end to their pin; others have a square pin that can get stuck in the screwdrive socket and are extraordinarily difficult to remove. Third Party Pentax-compatible AF lenses, naturally, have the screwdrive shaft at that point and are not a problem.
2) Some older lenses which precede the A series have anodised or painted and consequently non-conductive mount faces, which when used with newer Pentax DSLRs will not allow stop-down ("green button") metering. The anodised finish must then be filed or ground off (potentially destructive; hampers resale value) or rendered conductive with a strip of conductive electricians' tape or aluminium foil, where it touches the data pins on the camera. Oddly enough, I think the older DSLRs of the vintage you are nominating are immune to this issue for some reason, but if you got something like a K-5 cheap, this fix would be necessary.
3) Lenses predating the A series do not have electrical contacts and must be metered using the green button; they will as a matter of course not pass aperture data to the camera body nor accept aperture adjustment orders from it (it's all in the aperture ring). Lenses from the pre-autofocus era with electrical contacts (A-type lenses, not to be confused with Sony A mount) will not pass focal length or distortion correction data, and the zooms will thus not reliably pass correct aperture information unless the lens is by nature constant aperture throughout the zoom range. This will affect your exposure.
If you can find a used but functional K-5 series camera within your budget, go for it - for some reason, the sensor in that camera had some real magic put into it and they are a vast improvement in many ways over what came before them (among other things they are weather-resistant, which matters if you choose to invest further in current Pentax lenses). The K-5ii and K-5ii-s are generally accepted as having incremental improvements which make them preferable to a base model K-5 if you don't already have one, but may not be available as cheaply. One of these increments is autofocus, which might make a big difference for some of your ground-to-air shots. IIRC the II-s also lost the anti-aliasing filter and will deliver sharper images (all else being equal) at the slight risk of image moire with repeating patterns.
Then again, others have a definite preference for the colour rendering of the last of the CCD sensors (as opposed to CMOS), and prefer the older bodies which still have them.
Have a look in the camera review database if you need to know more about the specific bodies.