fix error in calculating y_max on square selection; allow characters other than enter to acknowledge messages