Cleanup updateCameraDirection and fix random input not working