# Grid-based Keyboard Navigation

**URL:** https://forum.kirupa.com/t/grid-based-keyboard-navigation/291915
**Category:** flash
**Created:** [July 7, 2009, 2:01pm UTC](https://forum.kirupa.com/t/grid-based-keyboard-navigation/291915 "2009-07-07T14:01:21Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![gone2far](https://avatars.discourse-cdn.com/v4/letter/g/9e8a1a/32.png) [@gone2far](https://forum.kirupa.com/u/gone2far)
#### Post date: [July 7, 2009, 2:01pm UTC](https://forum.kirupa.com/t/grid-based-keyboard-navigation/291915/1 "2009-07-07T14:01:21Z")

</div>

Example:

A 3\*3 grid, consisting of 9 squares (0-0, 0-1, 0-2, 1-0, 1-1, 1-2, 2-0, 2-1, 2-2). I want to be able to navigate the grid using a keyboard by going up, down, left and right. If I hit the edge of the grid, I would like to “wrap” to the other side. This kind of menu is seen on games, mobile devices etc.

Does anyone have a good implementation of navigation algorithm (does not to be in AS3), rather something I can refer to? Also, does anyone know the name of such menus so I can search for it?

Thanks,
