fix wrong condition of the maximum number of pushed keys