This program creates and sets hotkeys for setting a key for tx, ty, tz, rx, ry, and rz independantly. It also will create and set a hotkey that sets a keyframe for whatever attribute is selected in the channelbox. Additionally, there are hotkeys to Unify and Break tangent weights in the graph editor. The hotkeys are as follows: ALT+z key tx ALT+x key ty ALT+c key tz ALT+Z key rx ALT+X key ry ALT+C key rz ALT+g key selected (only works after you use key selected from the channel box once in pre Maya 2011)
Just copy and paste the code into your script editor under a Python Tab If you don't want a hotkey just put '#' in front of the coresponding lines of code Select all and hit CTRL+ENTER