Run reset command if esc is pressed