The Moodle file structure is more complex than so. Which version of Moodle are you using? In 2.x, the forms are managed by the moodleform class - I guess one could make some core code changes to change the behaviour of the buttons in the moodleform.
Well, it'd certainly be a lot easier if you could specify what it is you need Is it at one specific page you need to make events? What kind of event is it you need? More details, please