Ok so I have been doing more testing and this is what I am running into and it does not make much sense to me.
The last field on the page under some conditions needs to loop and collect x pieces of data. What I am seeing is that when enter is pressed the first time that entry is processed and the focus is returned to that field for the next entry. The next time the entry is processed but focus ends up on the button below. I tap the input field to get focus again and again I enter data, press enter and focus returns to the field for the next entry, I do it again and again it ends up of the button. I have added some info into the log to try and see why it is working part of the time and not working part of the time. In both cases the same code is executing, in both cases it is requesting focus but it seems to only be working every other time. If there was a way to detect focus on the button I could add some code there to put focus back where it needs to be but so far I do not see a way to detect focus going to a button.