Directly through the console or the api you can't.
It is possible to create a keypair using external tools and import it. You can try to create the keypair with password and then import it using the console or the api.
For more information take a look at http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html