broke keypress into send_command and keypress