There are a number of ways you can uniquely identify each of the 'direction links in your example.
note: I will be using <<link>> macros, each containing a <<run>> macro, to demostrate how to used the CSS selectors in my examples. You obviously would be using the equivelent CSS selectors within your keyboard monitoring JavaScript code instead.
1. Using a link's anchor element's relative position to it's parent element in the HTML structure.
If you wrap only the links in an ID'ed element then you could use the :nth-of-type(n) CSS pseudo-class to match each of the related anchor elements in turn, you could then use the jquery click() function to similate clicking that link,
eg. If your links were changed to looked something like the following.
<<nobr>>
<span id="map-links">
<<link "[<]">> ... <</link>> <b>|</b>
<<link "[^]">> ... <</link>> <b>|</b>
<<link "[>]">> ... <</link>><br>
<<link "[v]">> ... <</link>>
</span>
<</nobr>>
... then the related CSS selectors used to 'click' each one of them would look something like the following..
<<link "Click Left">>
<<run $('#map-links a:nth-of-type(1)').click()>>
<</link>>
<<link "Click Up">>
<<run $('#map-links a:nth-of-type(2)').click()>>
<</link>>
<<link "Click Right">>
<<run $('#map-links a:nth-of-type(3)').click()>>
<</link>>
<<link "Click Down">>
<<run $('#map-links a:nth-of-type(4)').click()>>
<</link>>
2. Wrapping each link's anchor element within an uniquely ID'ed parent element.
This is similar to point 1 except that multiple IDed wrapping elements are used, so if your example was changed to look something like this..
<<nobr>>
<span id="map-left"><<link "[<]">> ... <</link>></span> <b>|</b>
<span id="map-up"><<link "[^]">> ... <</link>></span> <b>|</b>
<span id="map-right"><<link "[>]">> ... <</link>></span> <br>
<span id="map-down"><<link "[v]">> ... <</link>></span>
<</nobr>>
... then the related CSS select used to 'click' each one of them would look somthing like the following..
<<link "Click Left">>
<<run $('#map-left a').click()>>
<</link>>
<<link "Click Up">>
<<run $('#map-up a').click()>>
<</link>>
<<link "Click Right">>
<<run $('#map-right a').click()>>
<</link>>
<<link "Click Down">>
<<run $('#map-down a').click()>>
<</link>>