Moving the injectChar call into sf::Event::TextEntered case.