Genericized keyup for chats.