You're right, $mouse.key has no value there. Here's a way to keep the current selection when the up/down keys are pressed:
Code:
On *:keydown:@window:38,40:{
  .timer 1 0 sline $active $$sline($active,1).ln
}