Add key configuration capability

This fixes #6