Might be better to use alt-v o , using alt-o END UP UP UP only works if "Display" and "Other" are opened. if there closed u end up in "Mouse"

Alias ChangeLines {
if ($appactive) sendkeys % $+ v o % $+ l {HOME} $str({DOWN},$calc($1 - 1)) {ENTER}
}

Excellent idea tho!