The best advice I can give is to time your inputs, don't just mash A after closing the textbox.
Here is the full tutorial: