Hi!

Thanks for the quick answer. It turns out that it is multi-byte sequences, first 91, then 65-68.

I'm not sure how I will do now, but it might be better to use the function you suggest. It turns out that 91 is also "[", so it could be complicated to see when it is e.g. up-arrow (91 65) or [A (91 65).

Regards,

David