fix logger
clear input before send_key