I’m trying to display single-line text in the center of the screen in an online study. The text is updated every frame according to what the subject types. If the subject types a letter, the whole text moves slightly so that the center of the text is in the center of the screen. However, if the subject types a space, the text does not move (it will if a new character is typed afterwards). PsychoJS seems to ignore trailing spaces. I would like the text to move even when spaces are typed. Is there a way to do this?