fixed issues regarding arrow keys and some symbols.