JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.
We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.
You actually do not need to open the private key file to use on your encrypted forms. So, I am not sure why you need to do this.
But in any case, it seems that an application was already associated to files that have .key extension name in your computer. Because of this every time you open the file, the associated application (Keynote as it seems) was the one used to open the file.
You can change it to other application by selecting a Textedit application instead.
See screenshot below for how to
Let us know if you need further assistance.