Let all your lives run out and choose 'Continue'. Do this a total of four times and you'll recieve speed upgrade for you arm cannon's charged shot.'Continue' four more times to recieve another speed upgrade.
Note that the upgrades cannot be saved with a password.
Enter the following at the password screen: