Analysis of seismotectonic processes in subduction zones from the standpoint of a keyboard model of great earthquakes