Override the down arrow keyboard event

I have a treegrid.

In the treegrid I have items with id that starts with ‘t’ (‘t1’, ‘t2’, etc.) and items with id that starts with ‘d’ (‘d1’, ‘d2’, …).

When I press the ‘down’ key from the keyboard I want to go to the next item with id that starts with ‘t’.

How to do this?

You can handle key by using

grid.attachEvent("onKeyPress", function(key){ ...code... })

from it you can use selection api to select the necessary row.