Maybe?
Should clear any keydef's the class is holding onto if you right click, but it's off the top of my head because I don't have time to test it.Code:
stage.addEventListener(MouseEvent.RIGHT_CLICK, clearKeys);
private static function clearKeys(event:MouseEvent):void {
keysDown = new Object();
}

