Please help! Anybody knows how to script the apple remote?

Hi, I have a simple question. Is there any way to script an apple remote action? for instance, is there a way to say

tell application "system Events"

"while the button <plus> of the apple remote is pressed"
   key code 126
"end while"

end tell

basically I want to keep sending “up arrows” to the UI until I release the “plus” button of the apple remote. This shouldn’t be too difficult, but I’m having a hard time to find any doc about this!

Any help is really appreciated!

thanks in advance
Emanuele