adds createFromJSON to KeyMap