Added sendNewText() function for updating backend on space press