clean + fiew more comments + test keys and handle arrow keys + uniformize undefined test