To unlock all characters automatically, one key, one press! F8.
If you want to unlock them manually, you'll have to use a character in classic mode without using any continues, and see what happens. Keep in mind that this may only work for certain unlockable characters. It's up to you to figure out which characters are unlocked by this method.