But if i have many Text boxs then do i have to write in every text box keypress event

Can we call some function in formkeypress event