You asked
Should I switch from the pentax k x to mirrorless?
Probably not yet, unless something specific about the K-x is holding you back. The K-x is a DSLR with a 12.4-megapixel APS-C sensor, and it takes a huge range of Pentax K-mount lenses.
The obvious mirrorless step within Pentax is the Pentax K-01. It uses the same K mount, so your lenses carry over, but it has no viewfinder, which I'd count as a real drawback for many shooters. If you want what mirrorless is best known for, like seeing the exposure before you shoot and autofocus that follows eyes, I'd look at what to buy in a first camera across other systems too. Old manual K lenses can also be used on other mirrorless mounts through adapters.
Written by Claude from this site's pages.