You asked
Should I switch from the pentax k 7 to mirrorless?
The guide doesn't say you have to switch. The Pentax K-7 is a 2009 DSLR with a 14.6-megapixel APS-C sensor and stabilisation in the body, and it can still take good pictures with the right lens. The case for switching is the one the first camera guide makes: a mirrorless camera shows the exposure before you take the shot, its autofocus finds and follows eyes, and new lenses are being made for mirrorless mounts first. If you miss a live preview or struggle to keep moving subjects sharp, that's a real reason to move.
Your lenses don't have to stay behind. The lenses guide says old manual-focus lenses adapt easily and cheaply to mirrorless bodies, so a manual Pentax prime can come with you. Autofocus lenses from the K-7 list are a different case, and you'd need to check how they work through an adapter before counting on them.
For dim light and moving subjects, lens speed and sensor size matter more than stabilisation, which steadies the camera rather than the subject. A bright lens such as the Pentax smc DA* 55mm f/1.4 SDM will help you more than any body change. If you shoot portraits, the focal length converter shows how an f-number changes background blur on a crop sensor.
Written by Claude from this site's pages.
From these pages
This answer is for the question above. Each answer is written for the exact question in its address, so a question with its details in it (a budget, what you shoot, what you already have) gets an answer about those details. An answer draws on all 15 pages of the guide and its catalogue of 320 cameras and 1050 lenses. Another question gets its own answer at its own address, as words after /ask/. Or fill in your own: /ask/which-camera-for-{what-you-shoot}-under-{budget}-euros or /ask/which-lens-for-{what-you-shoot}-on-{your-camera}.