input: send correct escape character sequence for some special keys