Add events to control viewport rotation