Fixed escape character for keypress