input: support for arrow movement
+ new way generic way to detect the alt modifier
+ new escape sequences can now be added easily
input: tried to clean parts of this mess