Code:
define my_key_up, key_cuu;


Potentially:
my_key_up is 'defined', it is a constant and it can not be reassigned?
Technically, my_key_up is not key_cuu exactly, it is instead the static value of key_cuu?

So we can assume this will not work, because a 'define', a constant is being reassigned.
Code:
my_key_up=get_key(up_key_var);


(That was sort of stated already by another user, I think.)

As is often the case, the compiler can a give a somewhat confusing, bullsh!tty response, but such a response is usually related to the problem in some way.
I believe the compiler refers to the incorrect reassignment of 'constant definition' my_key_up, as 'read-only key_cuu'.
Perhaps the compiler should instead state: "Hey slick, my_key_up is a constant definition. It's value cannot be reassigned during runtime. Use a var instead?"
Maybe try:
Code:

// I assume what follows is supposed to be a default setting.
var my_key_up = key_cuu;
// or
var my_key_up = (numerical value of key_cuu in manual);


Then reassignment of my_key_up should work, I think.
Code:
my_key_up=get_key(up_key_var);



Sort of a guess, I guess.