Keymap question with scripting support

urious questions. 1. Is it possible to separate numpad keys from the number row keys in order to make more features available? 2. Can one keystroke perform 2 actions depending on what is being don? for example switching from decks 1-3 and controling it with the same keys. Can a keystroke be scripted to perform different acctions if pressed quickly twice? Exploring possibilities for more customisations. Can a script file similar to midi script .jss files help make this happen?