XML menu - tabIndex for accessablility

Hey Guys,

I’ve tried adding the follwing to the awesome XML menu tutorial here on kirupa to make it navigatable by the keyboard:

At the top of the as:

var myTabIndex:Number = 1;

and then in the loops that creates the items:
curr_item.tabIndex = myTabIndex;
myTabIndex++

Crude I know but it seemed to be the right logic!

The problem is the arrow still doesnt quite react how I would suspect, when tabbing aroudn the menu I instinctivly try and use the arrow keys and they dont seem to react as expected…does anyone have any suggestions?

Many thanks
Zaod