Safe mode
From MikroTik Wiki
RouterOS have "safe mode" feature.It can be enabled/disabled by pressing cltr+x. You can enter safe mode, apply new configuration, and if your connection to router have been lost RouterOS will return previos configuration.