"Why exactly?" Peter asks. "What were you feeling or thinking that made you act like you did?"
Other options:
no subject
"Why exactly?" Peter asks. "What were you feeling or thinking that made you act like you did?"