Centralise generation of the control sequences for arrow keys into a