Place the file in ~/Music/djay/MIDI Mappings
and start Djay Pro.
Lookup MIDI note numbers and use the Xone K2 manual to manually edit the mapping.
Note: The <key>output</key>
needs to be paired with an empty self-closing <dict/>
see file for examples.