Add key generation to API Keys table

Fixes issue #2261