add send method and setOnKeyListener