add the username when char and add key_enter listener,can use it to send msg