This function is written for sending the keys