You asked

Should I buy a new battery for a used k 500 before shooting a small indoor event?

Yes, budget for a new genuine battery. The buying used guide notes that old batteries lose capacity, and a battery that dies halfway through an event is the last thing you want. Before you buy, check the seller's price against the market, and buy from a dealer with a returns window if you can, as the same guide recommends.

For a small indoor event, the lens matters more than the body. The Pentax K-500 has in-body stabilisation, which steadies the camera but does nothing for moving people. What helps in dim rooms is a fast lens, meaning a wide maximum aperture, on the APS-C sensor. Good options from the K-500's lens list include:

The 35mm is the best single choice for a mixed event, since you can work closer in a small room. The 50mm lenses suit a stage or a speaker. Either way, expect to shoot at high ISO and keep shutter speeds up.

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