I wrote a patch of /usr/share/pyshared/euca2ools/commands/euca/importkeypair.py and attached it. Works for me.
I wrote a patch of /usr/share/ pyshared/ euca2ools/ commands/ euca/importkeyp air.py and attached it. Works for me.