7. A method comprising: obtaining a webpage; reading markup language elements in the webpage; translating the markup language elements into graphical representations of the markup language elements, wherein the graphical representations include a current graphical element in the webpage and a target graphical element in the webpage; determining spatial locations of the current and target graphical elements in the webpage; determining a spatial relationship between the current and target graphical elements in the webpage; displaying the webpage using the graphical representations; generating a data structure having the markup language elements; assigning a keyboard shortcut to the determined spatial relationship; augmenting the generated data structure with data representing the assigned-keyboard shortcut; storing the augmented data structure; obtaining a selection of the keyboard-shortcut that indicates that a user wants to change focus of the webpage from the current graphical element to the target graphical element; and in response to the keyboard-shortcut selection, changing the focus in the webpage from the current graphical element to the target graphical element using the determined spatial locations, the determined spatial relationship and the stored augmented data structure.
10. A method according to claim 7 , wherein determining the spatial relationship between the current and target graphical elements includes using Cartesian coordinates of the webpage.