The API request differs in case of ssh keys with password keys, so ex_list_keypairs if called with no arguments will show all availabl keys, while if you specify password or ssh it will show these keys only. I'll document that on the code