handle error messages when opening key

Adds proper output for the case when there's more than one key present
fixes #9
support qt5