System and method for intraoperative characterization of brain function using input from a touch panel device