key send functioning better