Emulates a user typing some text