raKeyPressed command plugin
There’s a new command plugin for Maya under the ‘downloads’ section that tracks which of special keys are currently pressed (esc, shift, ctrl, alt). It is useful for MEL scripters to break a loop for instance whenever ‘esc’ key is pressed. Currently only works on Windows for Maya 7.