What type of 'code'? It is possible to bind a key to different things like sabers, playermodels, etc.
Open the console and type in:
bind j playermodel kyle
Then everytime you hit 'J' you will turn into Kyle.
bind k saber dual_1
Everytime you hit 'K' you will be given the first dual saber staff.
So you could then press 'j' and 'k' to turn into kyle and give yourself the saber staff.
You can also combine these two together with " and ; keys.
bind h "playermodel kyle; saber dual_1"
Now when you push 'h' you get both effects.