Further advice for keybindings

For some reason, on my Ubuntu 12.04 system, I need to enter `^[[A` but `$terminfo[kcuu1]` gives `^[OA`