Tab order vs onPress keyboard

The website i´m working on has buttons to go foward and back on the links. The action are on Release and on Keypress <right>

But on the contact page, there´s a form, and the tab order defined:

//set tab order
text1.tabIndex=1
text2.tabIndex=2
text3.tabIndex=3
text4.tabIndex=4

the problem is that the taborder setting is disabling the Keypress action on the button.
How can I overcome this problem?

thanks