added pan tilt to the key switch