1. Fixed key issues.
2. Added function to check if the special object is group or drawing object.