wild guess
GraalControl GUI (Which Graal is...) only has the keydown features. You're doing your system wrong if you need to do something like that. Can't you use this:
HTML Code:
function onKeyPressed() {
if (keydown(0)) this.s_pos = max(0, this.s_pos- 10);
if (keydown(1)) this.s_pos = max(0, this.s_pos - 1);
if (keydown(2)) this.s_pos = max(0, this.s_pos + 10);
if (keydown(3)) this.s_pos = max(0, this.s_pos + 1);
}
Would work I suppose if you had 10 items displayed on each row. Think about it?