Thank you very much. That enlightens me a lot. Makes sense to run the code only when key is pressed

The Lite C versus C Script problem remains though. No way to add C scripts under map properties. Here i define my main file.
Same code saved as *.c and included in my mainscript doesn't give me back the action. It doesn't appear. Makes it even sense to use Lite C? Must i learn the older C Script?