api: simplify listKeys handler

Seriously, I didn't remember we had this feature.

Related to #189.