I was thinking,

(a dangerous thing for me) That perhaps you may be concerned about maintaining the Integrity of your keypress procedures so an alternate choice might be to create a comand like <multitab,5> That would type the tab charactor 5 times on the web page.
Im only concerned with the <tab> charactor because it is the most universal way to cycle through available options on a web page.
Thanks ..... Jim