This is an easy way to assign onkeydown event in all edit controls created by TAdvDBFormPanel: