That Antworx dude made a thread then deleted it after he got an answer (I guess he doesn't want anyone to know he was asking for help), but I was about to post a method better than Wong's:
On pressing 'left':
-Cursor: Subtract 1 to alterable value A
On pressing 'right':
-Cursor: Add 1 to alterable value A
On pressing 'up':
-Cursor: Subtract 1 to alterable value B
On pressing 'down':
-Cursor: Add 1 to alterable value B
Always:
-Cursor: Set X position to ([leftboundary] + alterable value A * 64 )
-Cursor: Set Y position to ([topboundary] + alterable value B * 64 )
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.