Always when you want call a function by any event in the screen you need create the function in events area. Look this exemple :
<template name="myTemplate">
<button type="button" id="addButton" >
My button
</button>
</template>
This code above is to create the button in a html file. Now in the js file you need :
Template.myTemplate.events({
'click #addButton': function (e) {
// implement here the code on click
}
)
In the same way you can use the onChange, onFocus and others events to call your functions.