Check if a key has encryption capabilities and fail saying so when trying to