You asked

How does the pentax k 500 compare with other aps c cameras for dim indoor events?

The site's catalogue page for the Pentax K-500 covers only that camera and its lenses. It doesn't include other APS-C bodies, so this guide can't rank the K-500 against them. What it does say is that for low light and events, a fast lens matters more than the body. The sensor sizes page notes that a good APS-C camera with good lenses is enough for most hobby work, and that lenses and light matter more than the last stop of sensor performance.

The K-500 has 16.3 megapixels and stabilisation in the body. That steadies the camera, not a moving subject, so it helps less at indoor events than a wide aperture does.

For dim indoor events, the guide would pair the K-500 with fast lenses from its list:

The 35mm suits events where you need the room in the picture, the 50mm suits closer subjects, and the zoom covers both if you only want one lens. Light is the limit here: f/1.4 gives you the most light, but at that aperture focus gets thin, so check your focus at the event.

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}.