changed text message content listener from keyup to input