http://www.wowwiki.com/API_SetBinding

/script SetBinding("i","MOVEFORWARD") for example would set the I key to move forward.

I've played with this some, and when you edit your keybindings with the traditional window it gets odd...