switch input mode by M-x xxx