Hey, welcome! Which K lenses do you have?
All K-mount lenses will fit on modern Pentax DSLR directly, without adapter. That said, if the lens was made before AF was invented, it still won't have AF. (but it might allow a similar feature called catch in focus), and so on. Only F, FA, DA, and DFA series have full automation including AF.
Anyway, here is one thread about older manual lenses on modern DSLR:
https://www.pentaxforums.com/forums/54-pentax-lens-articles/110657-how-use-me...k-x-k-7-a.html
(m42 is an even older mount and requires a simple adapter, more modern K-mount lenses might have some more automation)
K-50 can be found for amazing prices right now. And the K-3II is a top notch camera, a little bigger and more powerful than the K-50, but costs a little more, as well. K-50 is great for beginners, K-3II has some more pro features. Anyway, if you are buying a DSLR, I suggest you buy one bundled with a lens. Especially if the lens is WR - if you have a WR lens on K-50 or K-3II, then you can shoot in poor weather, rain, and not worry. You can use many manual lenses, but its still good to have one nice WR lens with AF on hand. Modern DSLR cameras are no longer made for manual focus, so using just manual focus lenses can be difficult at times.
Oh, and a lot of users on this forum are using older glass, from Pentax M series, Pentax A and F series, and even older m42 lenses of various brands (Zeiss, Takumar,..). No problem if you are a little patient