Added return key event and stop loop on import/export/save functions