Nebraska beats Penn State, capping tumultuous week