Package changing keyboard mapping

I want to make package with Turbo Pascal 6 key mapping. As I understand I have to make JSON keymap. Can you point me to similar package so I can look at the package source where to place keymap in package and how to activate it?

I found atom/atom-keymap - is this way to go? Get instance of Keymap manager and then loadKeymap() from my package?

Your package needs to provide a folder named keymaps which contains the key mapping as either JSON or CSON.

Example:

See Keymaps In-Depth for details.