new function SendCommand

add keypress-event for tb_send (enter for sending command)