How to change the scale or size of an object in the BGE through a keystroke?

Hello, I’m new to the forum and I don’t know if I am right writing this here, sorry if it is not, but I have a jam on a project and need help or indications, I am developing an application with the Blender Game engine to control three lights RGB orbiting around an object to simulate the different effects of the visible spectrum of light on the same object.

I got the height and circular angle of each light with respect the object to illuminate is modified in real time with a parent with an empty that is on the vertical axis of the object to be illuminated, but I want to implement a modification also for the value of the radius or distance that separates them from the object without changing its height or circular angle.

If in object mode I increase the scale of the empty without changing its central position, I get an increase in the distance to the parented light.

The question is that I can not devise a system, throught a keyboard sensor, for increase or decrease the size of an object with Game Engine on, and I wondered if anyone could tell me where to start, I guess I should be with a Python script, but honestly, I know very little about python.
Anyone could help me, please?

Thank you all in advance

Best regards

You should have posted this in the Game Engine Support Thread.
But, as this is old you probably won’t notice this response.
To change the scale of an object, you can use python

object.worldScale