Yeah I kind of figured that somehow through all the defining of everything in the script that key_cuu was set to = a variable somewhere. Now that I know where the problem is, I still can't seem to come up with a solution as to how to fix that.
If I comment out sections that give problems, I get zero script errors. However, it doesn't do anything. I can redefine all of my other keys, just not those ones mentioned above. key_cuu, key_cud and all of those.
Thanks again, you've been a great help so far.

Any clues as to whether or not something changed with the key mapping between engine updates? It worked fine on earlier a6 versions. I looked in the manual and couldn't find anything about changes in the key mapping process.